华为交换机dhcp获取不到_交换机dhcp中继获取不到地址

求助:小弟菜鸟一枚,ENSP实验将S1作为dhcp服务器,S3作为dhcp中继,S1、S2、S3之间运行ospf协议,现在PC2无法获取到地址,配置如下,万分感谢

sysname S1

#

vlan batch 10 20 30

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

dhcp enable

#

diffserv domain default

#

drop-profile default

#

ip pool pool1

gateway-list 10.2.1.1

network 10.2.1.0 mask 255.255.255.0

#

ip pool pool2

gateway-list 10.1.1.1

network 10.1.1.0 mask 255.255.255.0

#

interface Vlanif1

#

interface Vlanif10

ip address 192.168.20.1 255.255.255.0

#

interface Vlanif30

ip address 10.1.1.1 255.255.255.0

dhcp select global

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 30

#

interface NULL0

#

interface LoopBack0

ip address 172.25.195.1 255.255.255.255

#

ospf 1 router-id 172.25.195.1

import-route direct

area 0.0.0.0

network 192.168.20.0 0.0.0.255

network 172.25.195.1 0.0.0.0

#sysname S2

#

vlan batch 10 20

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

interface Vlanif1

#

interface Vlanif10

ip address 192.168.20.2 255.255.255.0

#

interface Vlanif20

ip address 192.168.30.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 20

#

interface LoopBack0

ip address 172.25.195.2 255.255.255.255

#

ospf 1 router-id 172.25.195.2

import-route direct

area 0.0.0.0

network 192.168.20.0 0.0.0.255

network 192.168.30.0 0.0.0.255

network 172.25.195.2 0.0.0.0

#

sysname S3

#

vlan batch 20 30

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

dhcp enable

#

diffserv domain default

#

drop-profile default

#

interface Vlanif1

#

interface Vlanif20

ip address 192.168.30.2 255.255.255.0

#

interface Vlanif30

ip address 10.2.1.1 255.255.255.0

dhcp select relay

dhcp relay server-ip 10.1.1.1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 20

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 30

#

#

interface LoopBack0

ip address 172.25.195.3 255.255.255.255

#

ospf 1 router-id 172.25.195.3

import-route direct

area 0.0.0.0

network 172.25.195.3 0.0.0.0

network 192.168.30.0 0.0.0.255

#

user-interface con 0

user-interface vty 0 4

WWWWW.jpg

(11.62 KB)

2018-3-1 15:04

分享至:

你可能感兴趣的:(华为交换机dhcp获取不到)