电脑可以PING通交换机
交换机配置
# vlan 1
# vlan 10
# vlan 20
# stp global enable
# interface NULL0
# interface Vlan-interface1 ip address dhcp-alloc dhcp client identifier ascii 38a91c732ee7-VLAN0001
# interface Vlan-interface10 ip address 192.168.10.3 255.255.255.0
# interface Vlan-interface20 #
# interface GigabitEthernet1/0/44 port link-mode bridge port access vlan 10
# interface GigabitEthernet1/0/45 port link-mode bridge
# interface GigabitEthernet1/0/46 port link-mode bridge port access vlan 20
# interface GigabitEthernet1/0/47 port link-mode bridge port link-type trunk port trunk permit vlan all
路由器配置:
# vlan 1
# vlan 10
# vlan 20
## dhcp server ip-pool lan1 network 192.168.1.0 mask 255.255.255.0 gateway-list 192.168.1.1 dns-list 202.96.128.166 202.96.134.133
# interface Vlan-interface1 ip address 192.168.1.1 255.255.255.0
# interface Vlan-interface10
# interface GigabitEthernet0/0 port link-mode route nat outbound ip address dhcp-alloc
# interface GigabitEthernet0/0.1 vlan-type dot1q vid 10 ip address 192.168.10.1 255.255.255.0
# interface GigabitEthernet0/0.2 vlan-type dot1q vid 20 ip address 192.168.20.1 255.255.255.0
# interface GigabitEthernet0/9 port link-mode bridge port link-type trunk port trunk permit vlan all
# ip route-static 0.0.0.0 0.0.0.0 192.168.168.168
# dhcp enable
(0)
最佳答案
检查下路由器接口不要有多余配置
[r1]interface GigabitEthernet 0/0.1
[r1-GigabitEthernet0/0.1]vlan-type dot1g vid 10
[r1-GigabitEthernet0/0.1Jip add 192.168.10.1 24
[r1-GigabitEthernet0/0.1]qu
[r1interface GigabitEthernet 0/0.2
[r1-GigabitEthernet0/0.2]vlan-type dot1q vid 20
[r1-GigabitEthernet0/0.2lip address 192.168.20.1 24
[r1-GigabitEthernet0/0.2]qu
[r1]interface GigabitEthernet 0/0.3
[r1-GigabitEthernet0/0.3]vlan-type dot1q vid 30
[r1-GigabitEthernet0/0.3]ip address 192.168.30.1 24
[r1-GigabitEthernet0/0.3]qu
(0)
你是哪里不通,终端和网关吗?还是终端和外网不通;
你的路由和交换机的互联接口时哪些:
路由的g0/0 和交换机的g1/0/47 ?
(0)
路由的g0/0可以获取IP,电脑接0/5可以上网1.1段,路由的g0/9 接交换机的g1/0/47 现在的问题是电脑接1/0/44上不了网,
路由的g0/0可以获取IP,电脑接0/5可以上网1.1段,路由的g0/9 接交换机的g1/0/47 现在的问题是电脑接1/0/44上不了网,
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明