How do i determine my IP address? How do i determine my host name?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do i determine my IP address? How do i determine my host name?
In FedoraCore5 How do i determine my IP address? How do i determine my host name? How is firewalling accomplished in Linux? and How do i configure the firewall in both the GUI and CLI?
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Rep:
1) To determine your IP address, issue the command:
ifconfig
the output will show a list of interfaces. If you have 1 Ethernet interface, you will see entries for Eth0, if you have 2 interfaces, you will see entries for Eth0 and Eth1. Both interfaces will have an IP address associated with them in the list of info. You will also see an "dummy" or loopback interface lo0, associated with address 127.0.0.1, which is the address applications need to use when sending data to other applications on the same machine.
2)to find your hostname, issue the command:
hostname
3) firewalls are built into the kernel in Linux, so all you need is to either know the commands for the kernel, or because that is pretty hard first time round, you can use a firewall manager. A good CLI-based one is "Shorewall", ( http://www.shorewall.net ) and very nice Gui-based one is "Firestarter" ( http://www.fs-security.com/ )...Ultimately, they all control IPTABLES (http://www.netfilter.org/ ) functions in the kernel
That's a pretty basic answer, post more details if you can be more specific about what you are trying to do
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Rep:
Fair enough...I'm often tempted to flame posts like that...along the lines of "get up off yer ass and find out"...I got most of my Linux knowledge from Google, and so should they, but if you flame them, they will just get disillusioned and/or hassle someone else, or worse, revert to Windoze...maybe by making it easier, and posting a tag-line along the lines of "Google is your friend" I can shame them into some kind of self-reliance. That was where I was heading with:
"That's a pretty basic answer, post more details if you can be more specific about what you are trying to do"
The silly thing is, if you just post an answer, they won't learn, but they don't see it...Then they miss the buzz that comes from finally fixing a problem that's been bugging you for days...."sigh...I don't know, the youngsters of today..." Ow! Now I sound like my Dad! I'm off to reboot my walking frame!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.