求助大神
双线电信拨号要怎样能使vlan1 vlan2 互访呢?
VLAN1
acl number 2000 rule 0 permit source 192.168.0.0 0.0.0.255
VLAN2
acl number 3000 rule 5 permit ip source 192.168.1.0 0.0.0.255
(0)
最佳答案
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
version 5.20, Release 2516P11 # sysname H3C # password-control enable undo password-control aging enable undo password-control history enable password-control length 6 password-control login-attempt 3 exceed lock-time 10 password-control password update interval 0 password-control login idle-time 0 password-control complexity user-name check # domain default enable system # dns proxy enable # telnet server enable # dar p2p signature-file flash:/p2p_default.mtd # ndp enable # ntdp enable # cluster enable # port-security enable # password-recovery enable # acl number 2000 rule 0 permit source 192.168.0.0 0.0.0.255 # acl number 3000 rule 5 permit ip source 192.168.1.0 0.0.0.255 # vlan 1 # vlan 2 # domain system access-limit disable state active idle-cut disable self-service-url disable # dhcp server ip-pool vlan1 extended network ip range 192.168.0.0 192.168.0.254 network mask 255.255.255.0 gateway-list 192.168.0.254 dns-list 202.96.128.166 202.96.134.133 # dhcp server ip-pool vlan2 extended network ip range 192.168.1.0 192.168.1.254 network mask 255.255.255.0 gateway-list 192.168.1.254 dns-list 202.96.134.133 202.96.128.166 # policy-based-route celue permit node 10 if-match acl 3000 apply output-interface Dialer2 # user-group system group-attribute allow-guest # local-user admin authorization-attribute level 3 service-type telnet service-type web # cwmp undo cwmp enable # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp tcp mss 1024 # interface Dialer2 nat outbound 3000 link-protocol ppp ppp chap user 075505124611@163.gd ppp chap password cipher $c$3$N/NO5aABjkavExufWakZHH3AHZ5vGo+Yma3n ppp pap local-user 075505124611@163.gd password cipher $c$3$i9SdRlcIj0wwJxsVcjc qolhBp+Kg7EcAddGN ppp ipcp dns admit-any ppp ipcp dns request mtu 1492 ip address ppp-negotiate tcp mss 1024 dialer user username dialer-group 2 dialer bundle 2 # interface Dialer10 nat outbound 2000 link-protocol ppp ppp chap user 075528888568@163.gd ppp chap password cipher $c$3$a9Cv260SA1h9DROdej5p+6Ypz2Kyp0HFAqRI ppp pap local-user 075528888568@163.gd password cipher $c$3$gN4oq2s7zZj8dXwDnTJ TnzCyMFKkcDJmUS5Y ppp ipcp dns admit-any ppp ipcp dns request mtu 1492 ip address ppp-negotiate tcp mss 1024 dialer user username dialer-group 10 dialer bundle 10 # interface NULL0 # interface Vlan-interface1 ip address 192.168.0.254 255.255.255.0 tcp mss 1024 dhcp server apply ip-pool vlan1 # interface Vlan-interface2 ip address 192.168.1.254 255.255.255.0 dhcp server apply ip-pool vlan2 ip policy-based-route celue # interface GigabitEthernet0/0 port link-mode route pppoe-client dial-bundle-number 10 # interface GigabitEthernet0/1 port link-mode route description TO_wifi pppoe-client dial-bundle-number 2 # interface GigabitEthernet0/2 port link-mode bridge # interface GigabitEthernet0/3 port link-mode bridge # interface GigabitEthernet0/4 port link-mode bridge # interface GigabitEthernet0/5 port link-mode bridge # interface GigabitEthernet0/6 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/7 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/8 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/9 port link-mode bridge port access vlan 2 # ip route-static 0.0.0.0 0.0.0.0 Dialer10 preference 1 ip route-static 0.0.0.0 0.0.0.0 Dialer2 # dhcp server forbidden-ip 192.168.1.254 dhcp server forbidden-ip 192.168.0.254 # dhcp enable # dialer-rule 10 ip permit dialer-rule 20 ip permit dialer-rule 2 ip permit # nms primary monitor-interface Dialer2 # load xml-configuration # load tr069-configuration # user-interface tty 12 user-interface aux 0 user-interface vty 0 4 authentication-mode scheme
帮我看看,谢谢了。
上面这个配置不分行不太好看。。大概看了下,是内网口有两个,interface vlan 1和interface vlan 2,然后每个内网口做一个策略路由Pbr指定出接口,这样可以起到两个出口负载的功能。这种情况下两个内网口是不能互访的,因为内网流量到了vlan interface,就按照Pbr转发了,不会查路由表。所以要想内网间互访,就要把接口下的pbr取消掉,不过这样一来两个出口就没有办法按照内网源地址进行选择出接口了,只能按照哈希随机选取出口,有可能导致负载不均匀以及来回路径不一致。可以取消PBR看下实际效果
是同一台设备下面的内网。
要怎么样才能实现,两个出口,又能互访呢?
这种情况就两个内网口同一个vlan就行了,然后在vlan interface下面配PBR,也可以起到双出口负载的作用,且内网之间也可以互访
可以教我怎么配吗?