@
mind3x 请问下为什么我新建的接口全部都接连接不上,而且我在MWAN3接口下有 some interfaces have no default route in the main routing table的提示,网上有人说是没有设跳跃点的原故,我已改跳跃点,是不是MACVLAN没有虚拟成功的原因啊,我已经把ETC/RC.LOCAL改为
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
ip link add link eth0.2 vth1 type macvlan
ifconfig vth1 hw ether 00:56:22:38:44:6E
ifconfig vth1 up
ip link add link eth0.2 vth2 type macvlan
ifconfig vth2 hw ether 00:87:22:33:44:3F
ifconfig vth2 up
ip link add link eth0.2 vth3 type macvlan
ifconfig vth3 hw ether 00:11:56:21:44:3A
ifconfig vth3 up
ip link add link eth0.2 vth4 type macvlan
ifconfig vth4 hw ether 00:24:38:33:44:3F
ifconfig vth4 up
ip link add link eth0.2 vth5 type macvlan
ifconfig vth5 hw ether 00:42:22:51:44:3A
ifconfig vth5 up
ip link add link eth0.2 vth6 type macvlan
ifconfig vth6 hw ether 00:58:22:51:91:3B
ifconfig vth6 up
ip link add link eth0.2 vth7 type macvlan
ifconfig vth7 hw ether 00:91:59:48:44:3C
ifconfig vth7 up
ip link add link eth0.2 vth8 type macvlan
ifconfig vth8 hw ether 00:62:27:51:35:3C
ifconfig vth8 up
ip link add link eth0.2 vth9 type macvlan
ifconfig vth9 hw ether 00:34:38:92:44:3F
ifconfig vth9 up
exit 0
但是在PUTTY里用 IP LINK LS
查到的信息如下,是不是没有虚拟成功啊
root@OpenWrt:~# ip link ls
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
link/tunnel6 :: brd ::
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default
link/gre 0.0.0.0 brd 0.0.0.0
8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default
link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
10: ipddp0: <BROADCAST,MULTICAST,NOARP> mtu 585 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ip/ddp 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
11: teql0: <NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100
link/void
12: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 6c:b0:ce:11:c8:aa brd ff:ff:ff:ff:ff:ff
13: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 6c:b0:ce:11:c8:ac brd ff:ff:ff:ff:ff:ff
14: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 6c:b0:ce:11:c8:aa brd ff:ff:ff:ff:ff:ff
15: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP mode DEFAULT group default
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
16: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
17: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 3
link/ppp
root@OpenWrt:~# root@OpenWrt:~# ip link ls
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
link/tunnel6 :: brd ::
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
-ash6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32
: link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
root@OpenWrt:~#7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default
: link/gre 0.0.0.0 brd 0.0.0.0
not found8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default
root@OpenWrt:~# 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKN
OWN mode DEFAULT group default
-ash: can't open LOOPBACK,UP,LOWER_UP: no such file
-ash: 1:: not found
root@OpenWrt:~# link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
-ash: link/loopback: not found
root@OpenWrt:~# 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_cod
el state UP mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST,UP,LOWER_UP: no such file
-ash: 2:: not found
root@OpenWrt:~# link/ether f2:31:96:ea:45:f4 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT
group default
-ash: can't open NOARP: no such file
-ash: 3:: not found
root@OpenWrt:~# link/tunnel6 :: brd ::
-ash: link/tunnel6: not found
root@OpenWrt:~# 4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT gro
up default
-ash: can't open NOARP: no such file
-ash: 4:: not found
root@OpenWrt:~# link/sit 0.0.0.0 brd 0.0.0.0
-ash: link/sit: not found
root@OpenWrt:~# 5: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode D
EFAULT group default qlen 32
-ash: can't open BROADCAST,NOARP: no such file
-ash: 5:: not found
root@OpenWrt:~# link/ether 96:61:ff:85:1b:d6 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 6: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode D
EFAULT group default qlen 32
-ash: can't open BROADCAST,NOARP: no such file
-ash: 6:: not found
root@OpenWrt:~# link/ether 22:b8:5c:43:95:a7 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 7: gre0: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT gro
up default
-ash: can't open NOARP: no such file
-ash: 7:: not found
root@OpenWrt:~# link/gre 0.0.0.0 brd 0.0.0.0
-ash: link/gre: not found
root@OpenWrt:~# 8: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST: no such file
-ash: 8:: not found
root@OpenWrt:~# link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
-ash: link/ether: not found
root@OpenWrt:~# 9: ip6gre0: <NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT
group default
-ash: can't open NOARP: no such file
-ash: 9:: not found
root@OpenWrt:~# link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 br
d 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
-ash: link/gre6: not found
root@OpenWrt:~# 10: ipddp0: <BROADCAST,MULTICAST,NOARP> mtu 585 qdisc noop state
DOWN mode DEFAULT group default qlen 1000
-ash: can't open BROADCAST,MULTICAST,NOARP: no such file
-ash: 10:: not found