How to find out which interfaces use dhcp?
Hello all,
This may be a very basic question but I was wondering if there is a way through the command line to find out which interfaces are using dhcp. I'm using Ubuntu 9.10 in case that makes a difference. Thank you in advance. |
Code:
cat /etc/network/interfaces | grep dhcp |
For Debian family of distros
Code:
cat /etc/network/interfaces | grep dhcp Code:
find /etc/sysconfig/network-scripts/ -name "ifcfg-*" | xargs grep -i dhcp |
Re RH soln;
grep -i dhcp /etc/sysconfig/network-scripts/ifcfg* would be simpler |
Thank you for your help!
|
Also how can I see the dchp ip address through ifconfig command
Thanks |
You can see the ip address with ifconfig, you can't see what defined the ip address without looking at the config file. (AFAIK)
|
All times are GMT -5. The time now is 04:10 AM. |