'route'에 해당되는 글 1건

  1. 2017.04.24 route command( add/del -net)

# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         10.0.0.1        0.0.0.0         UG    100    0        0 eth0

10.0.0.0        *               255.255.255.0   U     100    0        0 eth0


#route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0

# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         10.0.0.1        0.0.0.0         UG    100    0        0 eth0

10.0.0.0        *               255.255.255.0   U     100    0        0 eth0

192.168.0.0     *               255.255.255.0   U     0      0        0 eth0


#route del -net 192.168.0.0 netmask 255.255.255.0

# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         10.0.0.1        0.0.0.0         UG    100    0        0 eth0

10.0.0.0        *               255.255.255.0   U     100    0        0 eth0



Posted by 라퀴옹
,