My Blog List

Thursday, July 8, 2010

Basic Network Configuretion

########## Network Configuretion ##########

Network Interface and IP

To check the installed drivers.
#lspci

To check the usb device on a usb port.
#lsusb


Display network interface / configuretion.
#ip -s link show eth0

To view the ip add & mac add.
#ip add show eth0

Network Configuration Utilities.

To check the device & Gatway
system-config-network-tui

To Assigne the Ip in text mode.
#system-config-network
Graphical #neat

To check the IP address
#ifconfig

To disabled the lancard.
#ifdown eth0

To enabled the lancard.
#ifup eth0

Interface Configuretion File.

To view the interface configuretion file.
#vim /etc/sysconfig/network-scripts/ifcfg-eth0

#Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
DEVICE=eth0
HWADDR=00:14:85:35:a0:96
ONBOOT=yes
NETMASK=255.255.0.0
IPADDR=188.1.1.57
GATEWAY=188.1.1.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

To view the virtual interface configuretion file.
{Bind multiple IP add to a single Lan Card}
#vim /etc/sysconfig/network-scripts/ifcfg-eth0:1
eg.eth0:1,eth0:2,eth0:3.......


Verifying Ip Connectivity.

To specify a count of the number of ICMP packets.
#ping -c 4 188.1.1.1
       {S.N} {IP Add.}

Display network path to a destination.
#traceroute (Side name)

Exmp:-
#traceroute www.google.com


To assigne the machine name.
Temporary.
#hostname (Name)

Permanent
#vim /etc/sysconfig/network

To assigne the Domain name.
Temporary.
#domainname (Name)

Permanent
#vim /etc/sysconfig/network

DNS Configuretion.

DNS Servers resolve names configured in.
#vim /etc/resolv.conf

nameserver (DNS Server IP)
nameserver  10.0.0.3

################## END #########################



By Laxman D. Kadam
Ph. No. 9967413230

email:-vikasjk3@gmail.com

No comments:

Post a Comment