[mpls-linux-devel] Another bug on iproute
Status: Beta
Brought to you by:
jleu
From: 刘磊 <orp...@ms...> - 2008-05-08 04:21:36
|
I found another problem. I can not add ip r for mpls by ssh connect. ______________________________________________________________________________________________ -bash-3.2# ip r 172.16.0.0/24 dev eth1 src 172.16.0.2 192.168.0.0/24 dev eth0 src 192.168.0.2 -bash-3.2# cat /etc/init.d/mpls #!/bin/ash modprobe mpls4 mpls nhlfe add key 0 instructions push gen 1000 nexthop eth1 ipv4 172.16.0.3 ip route add 10.0.0.2/32 via 172.16.0.3 mpls 0x2 mpls labelspace set dev eth1 labelspace 0 mpls ilm add label gen 2000 labelspace 0 mpls nhlfe add key 0 instructions nexthop eth0 ipv4 192.168.0.1 mpls xc add ilm_label gen 2000 ilm_labelspace 0 nhlfe_key 0x3 -bash-3.2# sh /etc/init.d/mpls NHLFE entry key 0x00000002 mtu 0 propagate_ttl (0 bytes, 0 pkts) ip: either "to" is duplicate, or "mpls" is garbage NHLFE entry key 0x00000003 mtu 0 propagate_ttl (0 bytes, 0 pkts) -bash-3.2# ip r 172.16.0.0/24 dev eth1 src 172.16.0.2 192.168.0.0/24 dev eth0 src 192.168.0.2 -bash-3.2# ip r add 10.0.0.2/32 via 172.16.0.3 mpls 0x2 ip: either "to" is duplicate, or "mpls" is garbage ----------------------------------------------------------------------------------------------------------------------- And when I input the last command by keyboard with connect to the mpls machine. I also can not found mpls keywords on ssh shell. -bash-3.2# ip r 10.0.0.2 via 172.16.0.3 dev eth1 172.16.0.0/24 dev eth1 src 172.16.0.2 192.168.0.0/24 dev eth0 src 192.168.0.2 _________________________________________________________________ 多个邮箱同步管理,live mail客户端万人抢用中 http://get.live.cn/product/mail.html |