Tag Archives: interface

Setting Full Duplex mode Ethernet Interface

You can check what mode is enabled before:

# ethtool eth1

to change:

# nano /etc/sysconfig/network-scripts/ifcfg-eth1
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"

Restart Interface:

# ifdown eth1 && ifup eth1


# tail -30 /var/log/messages
# ethtool eth1

How to Set an IP address to an interface ?

with the command ifconfig -a you’ll see all the network interfaces which are installed.
To set an IP address make:

$ ifconfig "interfaces" x.x.x.x netmask x.x.x.x
$ ifconfig ath1 netmask up

these commands as root.
T0 set a default gateway

$ route add default gw x.x.x.x

To add the dns resolve address locate the resolv.conf file and write them on it.

$ nano /etc/resolv.conf

save and close.
sooo ping google.com