问题描述:
运营商光猫与h3c s5560s三层交换机,如何互联?已知光猫地址段为192.168.6.1。我默认交换机上联口配置了vlan2与光猫连接,接口配置了ip address dhcp-alloc,下联口做了一个地址池并且创建了vlan200,并且做了ip route-static 0.0.0.0 0 192.168.6.1,网络只能通到交换机,无法ping通光猫地址,ip段不冲突,以下是配置。
vlan 20
#
vlan 200
#
stp global enable
#
dhcp server ip-pool 192.168.200.1
gateway-list 192.168.200.1
network 192.168.200.0 mask 255.255.255.0
dns-list 202.96.104.17 202.96.104.27
#
interface NULL0
#
interface Vlan-interface20
ip address dhcp-alloc
#
interface Vlan-interface200
ip address 192.168.200.1 255.255.255.0
#
interface GigabitEthernet1/0/17
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/18
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/19
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/20
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/21
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/22
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/23
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/24
port link-mode bridge
port access vlan 20
combo enable auto
#
ip route-static 0.0.0.0 0 192.168.6.1
组网及组网描述:
运营商光猫与h3c s5560s三层交换机,如何互联?已知光猫地址段为192.168.6.1。我默认交换机上联口配置了vlan2与光猫连接,接口配置了ip address dhcp-alloc,下联口做了一个地址池并且创建了vlan200,并且做了ip route-static 0.0.0.0 0 192.168.6.1,网络只能通到交换机,无法ping通光猫地址,ip段不冲突,以下是配置。
vlan 20
#
vlan 200
#
stp global enable
#
dhcp server ip-pool 192.168.200.1
gateway-list 192.168.200.1
network 192.168.200.0 mask 255.255.255.0
dns-list 202.96.104.17 202.96.104.27
#
interface NULL0
#
interface Vlan-interface20
ip address dhcp-alloc
#
interface Vlan-interface200
ip address 192.168.200.1 255.255.255.0
#
interface GigabitEthernet1/0/17
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/18
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/19
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/20
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/21
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/22
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/23
port link-mode bridge
port access vlan 200
combo enable auto
#
interface GigabitEthernet1/0/24
port link-mode bridge
port access vlan 20
combo enable auto
#
ip route-static 0.0.0.0 0 192.168.6.1
暂无评论