Posted
Filed under Computer/Linux

[root@kage network-scripts]# pwd
/etc/sysconfig/network-scripts

[root@kage network-scripts]# vi route-eth0
--------------------------------------------------
192.168.0.0/24 scope global nexthop via 192.168.100.10 weight 1
---------------------------------------------------

route을 추가하고싶은 device을 route-(device name)으로 파일을 만들고 이 안에 위와 같은 형식으로 적어주면 route가 route table에 add 된다.

ifup eth0
하면 eth0 device가 올라가면서 자동으로 eth0에 해당하는 위에 설정된 route table 값이 route table에 자동으로 올라간다.

2009/01/23 09:06 2009/01/23 09:06
[로그인][오픈아이디란?]