Discussion Locked

Linux "Ipconfig" command?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

What is the command that gives the same result as ipconfig in 2000 / XP?

I am having trouble getting to the internet, but I can ping the DNS servers etc... I want to see what my settings are.

New to Linux / Red Hat.

Tx

Toby

7 replies

by jschein

dganesh@indiatimes.com - Please wake up... this is linux and the DOS command is: ipconfig -a

by markus.wortmann

hi,

im not sure if it is in Red Hat to, but in Unitet Linux Distributions or SuSE ones they are using the script ifup / ifdown etc. The command that you shows the status of your Network Card is ifstatus eth0 i.e if you are using a fix IP Adress. ifstatus-dhcp eth0 gives you the status if you are using an dhcp providen adress.
first you should look for your routes an your gateway with netstat -r -an and look if your DNS Server is reacheable in it otherwise add a route with route add -net xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy gw your.gateway for it. Please look if you have defined a firewallscript like iptable or ipchains (some Distributions do this automaticly) then stop this and test again.

hope this helps

Markus Wortmann

This discussion is closed to new replies.