Check NIC and Network setting in Linux / Unix

Network Setting in Linux Based Platforms

Check the Network settion on you machine with the following commands. It will let you see your network setting in linux operation system but also change it.
Please follows the command as mentioned below:

1. View Network Settings of an Ethernet Adapter

# ifconfig

Ifconfig, when invoked with no arguments will display all the details of currently active interfaces.
If you give the interface name as an argument, the details of that specific interface will be displayed.

# ifconfig eth0

eth0   Link encap:Ethernet  HWaddr 00:2D:32:3E:39:3B
inet addr:  Bcast:  Mask:
inet6 addr: fe80::21d:92ff:fede:499b/64 Scope:Link

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 as the IP address for the interface eth0.

# ifconfig eth0

Change Subnet mask of the interface eth0.

# ifconfig eth0 netmask

Change Broadcast address of the interface eth0.

# ifconfig eth0 broadcast

Assign ip-address, netmask and broadcast at the same time to interface eht0.

# ifconfig eth0 netmask broadcast

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.