Computing.Net > Forums > Linux > ifconfig command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

ifconfig command

Reply to Message Icon

Name: shahzin
Date: March 6, 2004 at 02:25:41 Pacific
OS: Red Hat Linux 8.0
CPU/Ram: P3/256MB
Comment:

hello friends,
i have configured DHCP server and my linux server is taking the ip address from this DHCP server. I have also cofigured gateway and dns in dhcp server. Now how to check gateway and dns configured from linux client becuase ifconfig only gives the ip address information and not gateway & dns the way windows ipconfig /all gives all info.

thanks


shahzin



Sponsored Link
Ads by Google

Response Number 1
Name: heart_debian
Date: March 6, 2004 at 09:33:19 Pacific
Reply:

You can use the configuration programs provided with redhat, or manually edit the scripts in /etc/sysconfig/networking.

I remember in redhat theres a curses based utility called "setup" which includes network configuration.


0

Response Number 2
Name: wincybeulah
Date: March 6, 2004 at 22:00:24 Pacific
Reply:

Sir
I have to use my machine's ethernet address in my c socket program ,how to extract the ethernet address alone from ifconfig

thanx in advance
wincy

win


0

Response Number 3
Name: heart_debian
Date: March 7, 2004 at 07:07:45 Pacific
Reply:

Just type "ifconfig eth0", replacing eth0 with whatever your interface is (0 for first).
You can see the IP address as "Inet Addr".


0

Response Number 4
Name: 3Dave
Date: March 8, 2004 at 04:51:41 Pacific
Reply:

You can display/configure your gateways with the route command, to list your routing table:
$ /sbin/route

You DNS servers should be listed in either /etc/resolv.conf or /etc/dhcp/resolv.conf


0

Response Number 5
Name: obelix
Date: March 8, 2004 at 10:57:14 Pacific
Reply:

Hi

You can also check the gateway with

netstat -rn (the line with 'UG' sa a flag)

// ob


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Choosing the right ram Red Hat 9



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: ifconfig command

how to use commands www.computing.net/answers/linux/how-to-use-commands/29226.html

ifconfig command SuSE 7.2 www.computing.net/answers/linux/ifconfig-command-suse-72/9306.html

Linux , eth0 device not found www.computing.net/answers/linux/linux-eth0-device-not-found/23494.html