현재 시스템의 특정 네트워크 경로를 인식할 수 있게 추가할 수 있습니다.
route add -net IP 주소 netmask netmask값(255.255.255.0) dev 인터페이스장치명
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.128.12.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default 10.128.12.1 0.0.0.0 UG 0 0 0 eth0
# route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
10.128.12.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default 10.128.12.1 0.0.0.0 UG 0 0 0 eth0
eth0 를 통해 192.168.1.0 네트워크로 보내는 새로운 route 경로가 설정됩니다.