你好,我将设备上的ge0/3号改成二层接口,设置为TRUNK,共有3个VLAN,为100,110,120,对应分配置不同的DHCP IP段。GE0/3接别一台交换机的TRUNK口。但是电脑接在对应的VLAN口不同取得地址。交换机试过接其它的TRUNK口。状态正常。谢谢!
配置如下:
#
vlan 1
#
vlan 100
#
vlan 110
#
vlan 120
#
dhcp server ip-pool GigabitEthernet0/0
network 10.100.100.0 mask 255.255.255.0
address range 10.100.100.100 10.100.100.199
#
dhcp server ip-pool Vlan-interface1
gateway-list 172.30.1.1
network 172.30.1.0 mask 255.255.255.0
address range 172.30.1.100 172.30.1.199
#
dhcp server ip-pool Vlan-interface100
gateway-list 172.30.100.1
network 172.30.100.0 mask 255.255.255.0
address range 172.30.100.100 172.30.100.199
#
dhcp server ip-pool Vlan-interface110
gateway-list 172.30.110.1
network 172.30.110.0 mask 255.255.255.0
address range 172.30.110.100 172.30.110.199
#
dhcp server ip-pool Vlan-interface120
gateway-list 172.30.120.1
network 172.30.120.0 mask 255.255.255.0
address range 172.30.120.100 172.30.120.199
#
dhcp server ip-pool lan1
gateway-list 192.168.0.1
network 192.168.0.0 mask 255.255.254.0
address range 192.168.1.2 192.168.1.254
dns-list 192.168.0.1
#
controller Cellular0/0
#
interface NULL0
#
interface Vlan-interface1
ip address 172.30.1.1 255.255.255.0
#
interface Vlan-interface100
ip address 172.30.100.1 255.255.255.0
#
interface Vlan-interface110
ip address 172.30.110.1 255.255.255.0
#
interface Vlan-interface120
ip address 172.30.120.1 255.255.255.0
#
interface GigabitEthernet0/0
port link-mode route
ip address 10.100.100.1 255.255.255.0
tcp mss 1280
#
interface GigabitEthernet0/1
port link-mode route
#
interface GigabitEthernet0/2
port link-mode route
combo enable copper
#
interface GigabitEthernet0/4
port link-mode route
#
interface GigabitEthernet0/5
port link-mode route
#
interface GigabitEthernet0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 110 120
combo enable copper
(0)
改成:
#
interface GigabitEthernet0/3
port link-mode route
combo enable copper
#
interface GigabitEthernet0/3.100
vlan-type dot1q vid 100 110 120
vlan-termination broadcast enable
这样吗?谢谢!
(0)
建3个子接口,每个子接口对应一个网段
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明