最佳答案
我按照你的组网和配置试了一遍,完全没问题啊,你的问题不在于配置,应该是virtualbox或者模拟器有问题。
【终结vlan路由器】
# interface GigabitEthernet0/0.1
ip address 192.168.10.1 255.255.255.0
vlan-type dot1q vid 10
vlan-termination broadcast enable
#
interface GigabitEthernet0/0.2
ip address 192.168.20.1 255.255.255.0
vlan-type dot1q vid 20
vlan-termination broadcast enable
【交换机配置】
# vlan 10
#
vlan 20
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
#
interface GigabitEthernet1/0/2--连PC1
port link-mode bridge
port access vlan 10
combo enable fiber
#
interface GigabitEthernet1/0/3--连PC2
port link-mode bridge
port access vlan 20
combo enable fiber
【结果】
[H3C-GigabitEthernet0/0]ip add 192.168.10.5 24
[H3C-GigabitEthernet0/0]
[H3C-GigabitEthernet0/0]ping 192.168.10.1
Ping 192.168.10.1 (192.168.10.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.10.1: icmp_seq=0 ttl=255 time=5.000 ms
56 bytes from 192.168.10.1: icmp_seq=1 ttl=255 time=3.000 m
s 56 bytes from 192.168.10.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.10.1: icmp_seq=3 ttl=255 time=4.000 ms
56 bytes from 192.168.10.1: icmp_seq=4 ttl=255 time=2.000 ms
--- Ping statistics for 192.168.10.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss round-trip min/avg/max/std-dev = 1.000/3.000/5.000/1.414 ms
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论