Thursday, September 27, 2007

Get the ethenet details - Linux

Open the /etc/sysconfig/network-scripts/ifcfg-eth0 file and it consists of all the details.
eg:

DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:35:0C:63:D4
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=thilina
USERCTL=no
PEERDNS=yes
IPV6INIT=no
IPADDR=192.168.0.57
NETMASK=255.255.255.0
GATEWAY=192.168.0.201

No comments: