左侧路由器配置:
ip dhcp pool 1
network 10.0.0.0 255.0.0.0
default-router 10.1.1.1
!
ip dhcp pool 2
network 20.0.0.0 255.0.0.0
default-router 20.2.2.1
!
interface GigabitEthernet0/0/1.1
encapsulation dot1Q 1 native
ip address 20.2.2.1 255.0.0.0
!
interface GigabitEthernet0/0/2
ip address 10.1.1.1 255.0.0.0
右边路由器配置:
interface GigabitEthernet0/0/1.1
encapsulation dot1Q 1 native
ip address dhcp
!
interface GigabitEthernet0/0/2
ip address dhcp