Docunext


ethtool and route

January 31st, 2007

Couple of quick notes on networking:

ethtool

Ethtool is the best tool in my opinion for editing network hardware settings. For example:

ethtool -s eth1 autoneg off speed 100 duplex full

That will turn off autonegotiation, and set the speed to 100, full duplex.

route

For linux networking, route is the tool for setting up routing tables.

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.0.1     192.168.0.1     255.255.255.255 UGH   0      0        0 eth1

192.168.0.0     *               255.255.255.0   U     0      0        0 eth1

64.25.86.0      *               255.255.255.0   U     0      0        0 eth0

default         64.25.86.81     0.0.0.0         UG    0      0        0 eth0
route add -host 192.168.0.1 gw 192.168.0.1
Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022