ifconfig – Bringing down/up an interface

 

To bring down an interface with ifconfig use following command:

$ ifconfig eth0 down

To bring up an interface with ifconfig use following command:

$ ifconfig eth0 192.168.1.20 subnet 255.255.255.0 up

Where 192.168.1.20 is ip address and 255.255.255.0 is subnet mask

To view all available interfaces:

$ ifconfig

-Sany

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s