Posts Tagged ‘networking’
During some network changes I’ve found the need to modify the routing table.
To change the default route on Windows XP (and possibly Windows Vista, 2000, etc) you use the route command. The syntax is pretty simple, here is a quick example….
route change 0.0.0.0 mask 0.0.0.0 172.18.12.120
To delete or add routes, simply change the keyword change to either add or delete.
route add 192.168.0.0 mask 255.255.255.0 10.10.0.50
If you’ve ever wanted to check on the status of your Ethernet links, you’ve probably used the ip commands (or ifconfig) to view some basic information. However, you might have noticed these commands do not tell you what the current link speed is, or other possibly important details. That’s where ethtool comes in.
[jonmoore@megaton ~]$ sudo ethtool eth0 Settings for eth0: Supported ports: [ MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: external Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yes
As you can see, ethtool will show you the support modes, as well as the current mode. From the above example, I’m currently connected at 1000Mb/s at Full Duplex. Very nice.
Check out the ethtool man page for more useful commands.
