2. Display Details of All interfaces Including Disabled Interfaces
# ifconfig -a
3. Disable an Interface
# ifconfig eth0 down
4. Enable an Interface
# ifconfig eth0 up
5. Assign ip-address to an Interface
Assign
192.168.2.2 as the IP address for the interface eth0.
# ifconfig eth0 192.168.2.2
Change Subnet mask of the interface eth0.
# ifconfig eth0 netmask 255.255.255.0
Change Broadcast address of the interface eth0.
# ifconfig eth0 broadcast 192.168.2.255
Assign ip-address, netmask and broadcast at the same time to interface eht0.
# ifconfig eth0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255
No comments:
Post a Comment