Routing Table
Editing routing table will enable the use of more than 1 network card in a pc/server. For example, using both Local Network and WIFI connection at the same time. The purpose is to tell the computer which network card for which ip's. These are the commands, a slight difference in Windows and Linux.
Windows
route add 10.8.2.25 10.8.1.1
route add 0.0.0.0 mask 0.0.0.0 192.168.2.1
route print (to display routing table)
Linux
route add 10.8.2.25 gw 10.8.1.1
route add default gw 192.168.1.1
or to add the whole network segment
route add -net 10.8.2.0 netmask 255.255.255.0 dev eth0
route -n (to display routing table)
0 Comments:
Post a Comment
<< Home