vlan配置如下
接口配置如下
接口链路类型为access
电脑配置
请问如何使这两台电脑能相互访问呢,目前回答都说网关在同一台设备上,vlan默认就是通的,但是现在我测试是不能访问的。
(0)
最佳答案
电脑的防火墙有没有关闭,网关互ping是否是通的
(0)
在172.168.1.10的电脑 ping172.168.3.1 也不通
防火墙是关闭的,交换机可以ping通两台电脑
看你的截图是wind10的电脑,win10防火墙默认是开启,是禁ping的。你可以开3389端口测试,也可以关闭防火墙测试然后再开起来
ping不通网关,没有配置acl策略,
# version 7.1.070, Release 6312P01 # sysname H3C # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # lldp global enable # password-recovery enable # vlan 1 # vlan 2 to 5 # vlan 7 to 4094 # stp global enable # interface NULL0 # interface Vlan-interface1 ip address 172.168.1.1 255.255.255.0 dhcp client identifier ascii 58c7acfc4fd0-VLAN0001 # interface Vlan-interface2 ip address 172.168.2.1 255.255.255.0 # interface Vlan-interface3 ip address 172.168.3.1 255.255.255.0 # interface Vlan-interface4 ip address 172.168.4.1 255.255.255.0 # interface Vlan-interface5 ip address 172.168.5.1 255.255.255.0 # interface GigabitEthernet1/0/6 port link-mode route ip address 172.168.6.1 255.255.255.0 # interface GigabitEthernet1/0/7 port link-mode route ip address 172.168.7.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 2 # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 3 # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 4 # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 5 # interface GigabitEthernet1/0/8 port link-mode bridge # interface GigabitEthernet1/0/9 port link-mode bridge # interface GigabitEthernet1/0/10 port link-mode bridge # interface GigabitEthernet1/0/11 port link-mode bridge # interface GigabitEthernet1/0/12 port link-mode bridge # interface GigabitEthernet1/0/13 port link-mode bridge # interface GigabitEthernet1/0/14 port link-mode bridge # interface GigabitEthernet1/0/15 port link-mode bridge # interface GigabitEthernet1/0/16 port link-mode bridge # interface GigabitEthernet1/0/17 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/18 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/19 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/20 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/21 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/22 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/23 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/24 port link-mode bridge combo enable auto # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 port link-mode bridge # interface Ten-GigabitEthernet1/0/26 port link-mode bridge # interface Ten-GigabitEthernet1/0/27 port link-mode bridge # interface Ten-GigabitEthernet1/0/28 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class usb user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 63 user-role network-operator # radius scheme system user-name-format without-domain # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$1JNRlvOTwf+9RbHL$+fgjnUonDCHPjJFPwsGN63Uw+Sl6lYHyoIwAPIALCOtTtXnupAkkh4JyCzD8vouUPGRMthtY6MDt/kVOdOaiYQ== service-type http https authorization-attribute user-role network-admin authorization-attribute user-role network-operator # ip http enable ip https enable # cloud-management server domain oasis.h3c.com # return
网关在同一台设备上,属于直连路由,默认都是互通的,如果你2台PC之间无法ping通,可以将电脑防火墙关闭测试,防火墙默认是禁ping的。
(0)
直连路由,是不是在路由表里面可以看到路由信息
防火墙是关闭的,在交换机可以ping通两台电脑
直连路由,是不是在路由表里面可以看到路由信息
如果网关在同一台设备上,两个不同的网段可以通的。您看看电脑的防火墙关闭了吗?或者换其他电脑能不能通
(0)
好的,您这边问题能解决就好
防火墙是关闭的,从交换机是可以ping通两台电脑
那肯定是可以通的。之前遇到过相同的问题,换了电脑好了。交换机有做过acl这些策略吗?
那就只能试试换电脑来看看了。或者您试试相同网段的话能不能通呢
您这边搭建的环境是交换机(网关)---电脑a和电脑b这样的吗。接口配置能通过命令行发出来吗?
环境是这样的,交换机配置 # version 7.1.070, Release 6312P01 # sysname H3C # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # lldp global enable # password-recovery enable # vlan 1 # vlan 2 to 5 # vlan 7 to 4094 # stp global enable # interface NULL0 # interface Vlan-interface1 ip address 172.168.1.1 255.255.255.0 dhcp client identifier ascii 58c7acfc4fd0-VLAN0001 # interface Vlan-interface2 ip address 172.168.2.1 255.255.255.0 # interface Vlan-interface3 ip address 172.168.3.1 255.255.255.0 # interface Vlan-interface4 ip address 172.168.4.1 255.255.255.0 # interface Vlan-interface5 ip address 172.168.5.1 255.255.255.0 # interface GigabitEthernet1/0/6 port link-mode route ip address 172.168.6.1 255.255.255.0 # interface GigabitEthernet1/0/7 port link-mode route ip address 172.168.7.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 2 # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 3 # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 4 # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 5 # interface GigabitEthernet1/0/8 port link-mode bridge # interface GigabitEthernet1/0/9 port link-mode bridge # interface GigabitEthernet1/0/10 port link-mode bridge # interface GigabitEthernet1/0/11 port link-mode bridge # interface GigabitEthernet1/0/12 port link-mode bridge # interface GigabitEthernet1/0/13 port link-mode bridge # interface GigabitEthernet1/0/14 port link-mode bridge # interface GigabitEthernet1/0/15 port link-mode bridge # interface GigabitEthernet1/0/16 port link-mode bridge # interface GigabitEthernet1/0/17 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/18 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/19 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/20 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/21 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/22 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/23 port link-mode bridge combo enable auto # interface GigabitEthernet1/0/24 port link-mode bridge combo enable auto # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 port link-mode bridge # interface Ten-GigabitEthernet1/0/26 port link-mode bridge # interface Ten-GigabitEthernet1/0/27 port link-mode bridge # interface Ten-GigabitEthernet1/0/28 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class usb user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 63 user-role network-operator # radius scheme system user-name-format without-domain # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$1JNRlvOTwf+9RbHL$+fgjnUonDCHPjJFPwsGN63Uw+Sl6lYHyoIwAPIALCOtTtXnupAkkh4JyCzD8vouUPGRMthtY6MDt/kVOdOaiYQ== service-type http https authorization-attribute user-role network-admin authorization-attribute user-role network-operator # ip http enable ip https enable # cloud-management server domain oasis.h3c.com # return
好的,您这边问题能解决就好
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
感谢帮助,原来是需要禁用WIFI就行了