Lines Matching +full:route +full:- +full:up

1 # $NetBSD: t_mpls_fw.sh,v 1.5 2016/08/10 07:50:37 ozaki-r Exp $
29 # Setup four routers connected like this: R1---R2---R3---R4--
32 # Add route on R1 in order to encapsulate into MPLS the IP packets with
35 # Add MPLS "POP" route on R3 for that FEC, pointing to R4
45 RUMP_FLAGS="-lrumpnet -lrumpnet_net -lrumpnet_netinet \
46 -lrumpdev -lrumpnet_netmpls -lrumpnet_shmif"
59 ulimit -r 300
60 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER1}
61 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER2}
62 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER3}
63 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER4}
71 atf_check -s exit:0 rump.ifconfig shmif0 create
72 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom1
73 atf_check -s exit:0 rump.ifconfig shmif0 10.0.1.1/24
74 atf_check -s exit:0 rump.ifconfig mpls0 create up
75 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
76 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
77 atf_check -s exit:0 rump.route -q add 10.0.4.0/24 -ifa 10.0.1.1 \
78 -ifp mpls0 -tag 25 -inet 10.0.1.2
82 atf_check -s exit:0 rump.ifconfig shmif0 create
83 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom1
84 atf_check -s exit:0 rump.ifconfig shmif0 10.0.1.2/24
85 atf_check -s exit:0 rump.ifconfig shmif1 create
86 atf_check -s exit:0 rump.ifconfig shmif1 linkstr ./shdom2
87 atf_check -s exit:0 rump.ifconfig shmif1 10.0.2.1/24
88 atf_check -s exit:0 rump.ifconfig mpls0 create up
89 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
90 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
91 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
92 atf_check -s exit:0 rump.route -q add -mpls 25 -tag 30 -inet 10.0.2.2
93 atf_check -s exit:0 rump.route -q add -mpls 27 -tag ${1} -inet 10.0.1.1
97 atf_check -s exit:0 rump.ifconfig shmif0 create
98 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom2
99 atf_check -s exit:0 rump.ifconfig shmif0 10.0.2.2/24
100 atf_check -s exit:0 rump.ifconfig shmif1 create
101 atf_check -s exit:0 rump.ifconfig shmif1 linkstr ./shdom3
102 atf_check -s exit:0 rump.ifconfig shmif1 10.0.3.1/24
103 atf_check -s exit:0 rump.ifconfig mpls0 create up
104 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
105 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
106 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
107 atf_check -s exit:0 rump.route -q add -mpls 30 -tag ${1} -inet 10.0.3.2
108 atf_check -s exit:0 rump.route -q add -mpls 26 -tag 27 -inet 10.0.2.1
112 atf_check -s exit:0 rump.ifconfig shmif0 create
113 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom3
114 atf_check -s exit:0 rump.ifconfig shmif0 10.0.3.2/24
115 atf_check -s exit:0 rump.ifconfig shmif1 create
116 atf_check -s exit:0 rump.ifconfig shmif1 linkstr ./shdom4
117 atf_check -s exit:0 rump.ifconfig shmif1 10.0.4.1/24
118 atf_check -s exit:0 rump.ifconfig mpls0 create up
119 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
120 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
121 atf_check -s exit:0 rump.route -q add 10.0.1.0/24 -ifa 10.0.3.2 \
122 -ifp mpls0 -tag 26 -inet 10.0.3.1
131 atf_check -s exit:0 -o match:"64 bytes from 10.0.4.1: icmp_seq=" \
132 rump.ping -n -o -w 5 10.0.4.1