If you does not know what in the world is
Open
For
Output:
ifconfig
! SCREW YOURSELF! for your kind information ifconfig
is a network interface configuration tool.Open
Terminal
:
ifconfig
Windows
, command will be slightly different:
ipconfig
eth0 Link encap:Ethernet HWaddr 00:1d:60:06:cc:2d UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:852 errors:0 dropped:0 overruns:0 frame:0 TX packets:852 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:64720 (64.7 KB) TX bytes:64720 (64.7 KB)
Show all interfaces:
ifconfig -a
Display information for
eth0
interface:
ifconfig eth0
The fun begin..
Take down the
This will deactivate
Take down the
eth0
interface:
ifconfig eth0 down
eth0
.
Change the IP address of
eth0
:
ifconfig eth0 111.111.0.0
Change the hardware address of
eth0
:
ifconfig eth0 hw ether aa:aa:aa:aa:aa:aa
Bring up the interface
eth0
:
ifconfig eth0 up
Now run ifconfig..
Output:
ifconfig eth0
eth0 Link encap:Ethernet HWaddr aa:aa:aa:aa:aa inet addr:111.111.0.0 Bcast:255.255.255.255 Mask:0.0.0.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
These are few example of
ifconfig
. more option and argument can be found in man page.
man ifconfig
No comments:
Post a Comment