
我想让4 PC得到DHCP IP地址没有问题与左侧,但右侧2 PC不能获得IP自动化。我想问题是DHCP继电器。如何使用ip助手地址作为R2的子接口?
s1
interface FastEthernet0/1
switchport mode trunk
interface FastEthernet0/2
switchport access vlan 11
switchport mode access
interface FastEthernet0/3
switchport access vlan 10
switchport mode accesss2
interface FastEthernet0/1
switchport mode trunk
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
interface FastEthernet0/3
switchport access vlan 30
switchport mode accessR1-DHCP
1.建筑物配置..。
Current configuration : 1593 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
ip dhcp pool Area-1
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
ip dhcp pool Area-2
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
ip dhcp pool Area-3
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
ip dhcp pool Area-4
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 190.168.50.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
!
interface GigabitEthernet0/0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/1.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0/1.11
encapsulation dot1Q 11
ip address 192.168.11.1 255.255.255.0
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 192.168.20.0
network 192.168.30.0
network 192.168.50.0
no auto-summary
!
ip classless
ip route 192.168.20.0 255.255.255.0 192.168.50.2
ip route 192.168.30.0 255.255.255.0 192.168.50.2
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
endR2
Building configuration...
Current configuration : 1151 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 192.168.50.2 255.255.255.0
ip helper-address 192.168.50.1
duplex auto
speed auto
!
interface GigabitEthernet0/0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/1.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
ip helper-address 192.168.50.1
!
interface GigabitEthernet0/0/1.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
ip helper-address 192.168.50.1
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 192.168.10.0
network 192.168.11.0
network 192.168.50.0
no auto-summary
!
ip classless
ip route 192.168.10.0 255.255.255.0 192.168.50.1
ip route 192.168.11.0 255.255.255.0 192.168.50.1
!
ip flow-export version 9发布于 2022-03-13 15:21:16
一些问题:
ip helper-address 192.168.50.2 --您已经将路由器本身添加为DHCP服务器。那条线得走了。发布于 2022-03-14 11:33:38
这应该通过R2进行配置。
ip dhcp pool Area-3
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
ip dhcp pool Area-4
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1https://networkengineering.stackexchange.com/questions/78212
复制相似问题