2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

スタティックルート覚書

2
Posted at

■ CentOSなど
※eth0を発信インターフェイスとする場合
route add -net 192.168.99.0/24 gw 192.168.0.254 eth0

※経路を削除する場合
route del -net 192.168.99.0/24 gw 192.168.0.254 eth0

※スタティックルートを再起動後も保存したいとき
vi /etc/sysconfig/network-scripts/route-eth0

192.168.99.0/24 via 192.168.0.254

/etc/rc.d/init.d/network restart

■ Windows
route add 192.168.99.0 mask 255.255.255.0 gw 192.168.0.254

■ 確認
netstat -nr

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?