dhcp 接口地址池VS 全局地址池
dhcp enable (开启dhcp)
VLAN Batch 10 20 30 40
ip pool vlan20
gateway-list 10.1.2.254
network 10.1.2.0 mask 255.255.255.0
static-bind ip-address 10.1.2.1 mac-address 5489-98a2-582d
#
interface Vlanif10
ip address 10.1.1.254 255.255.255.0
dhcp select interface
dhcp server static-bind ip-address 10.1.1.1 mac-address 5489-98a9-577a
#
interface Vlanif20
ip address 10.1.2.254 255.255.255.0
dhcp select global
#
OSPF协议:
三层设备所有网段ip地址
ospf 1 router-id 10.10.10.10
area 0.0.0.0
network 10.1.1.254 0.0.0.0
network 10.1.2.254 0.0.0.0
network 10.1.3.254 0.0.0.0
network 10.1.34.3 0.0.0.0
(路由)
interface GigabitEthernet0/0/0
ip address 10.1.34.4 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.23.3 255.255.255.0
#
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 10.1.23.3 0.0.0.0
network 10.1.34.4 0.0.0.0
interface GigabitEthernet0/0/4
port link-type trunk
port trunk pvid vlan 40
port trunk allow-pass vlan 40