宿舍-SS:
vlan batch 10 100 200 210 to 212
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type access
port default vlan 200
-----------------------------
教学楼-JXL:
vlan batch 20 to 21 100
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
-----------------------------
食堂-ST
vlan batch 30 40 100
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
traffic-filter inbound acl 3040
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/5
port link-type trunk
port trunk allow-pass vlan 2 to 4094
-----------------------------
办公楼BGL:
vlan batch 30 40 100 200 240 to 242
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
traffic-filter inbound acl 3040
interface GigabitEthernet0/0/2
port link-type access
port default vlan 200
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/5
port link-type trunk
port trunk allow-pass vlan 2 to 4094
-----------------------------
FWQ:
vlan batch 10 100
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 100
-----------------------------
2、VRRP网关冗余
Haskell复制代码
SS:
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
dhcp select global
interface Vlanif100
ip address 200.0.1.2 255.255.255.0
interface Vlanif200
ip address 192.200.1.254 255.255.255.0
interface Vlanif210
ip address 192.200.10.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.1.1
interface Vlanif211
ip address 192.200.11.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.1.1
interface Vlanif212
ip address 192.200.12.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.1.1
-----------------------------
ST:
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
vrrp vrid 30 virtual-ip 192.168.30.254
vrrp vrid 30 priority 120
vrrp vrid 30 track interface GigabitEthernet0/0/1 reduced 30
dhcp select global
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
vrrp vrid 40 virtual-ip 192.168.40.254
dhcp select global
interface Vlanif100
ip address 200.0.3.2 255.255.255.0
-----------------------------
JXL:
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
dhcp select global
interface Vlanif21
ip address 192.168.21.254 255.255.255.0
dhcp select global
interface Vlanif100
ip address 200.0.2.2 255.255.255.0
-----------------------------
BGL:
interface Vlanif30
ip address 192.168.30.2 255.255.255.0
vrrp vrid 30 virtual-ip 192.168.30.254
dhcp select global
interface Vlanif40
ip address 192.168.40.2 255.255.255.0
vrrp vrid 40 virtual-ip 192.168.40.254
vrrp vrid 40 priority 120
vrrp vrid 40 track interface GigabitEthernet0/0/1 reduced 30
dhcp select global
interface Vlanif100
ip address 200.0.4.2 255.255.255.0
interface Vlanif200
ip address 192.200.4.254 255.255.255.0
interface Vlanif240
ip address 192.200.40.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.4.1
interface Vlanif241
ip address 192.200.41.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.4.1
interface Vlanif242
ip address 192.200.42.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.200.4.1
-----------------------------
FWQ:
interface Vlanif10
ip address 200.0.60.254 255.255.255.0
interface Vlanif100
ip address 200.0.61.254 255.255.255.0
-----------------------------
3、DHCP中继
Haskell复制代码
SS:
ip pool vlan10
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
-----------------------------
JXL:
ip pool vlan20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
ip pool vlan21
gateway-list 192.168.21.254
network 192.168.21.0 mask 255.255.255.0
-----------------------------
BGL:
ip pool vlan30
gateway-list 192.168.30.254
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.1 192.168.30.2
ip pool vlan40
gateway-list 192.168.40.254
network 192.168.40.0 mask 255.255.255.0
excluded-ip-address 192.168.40.1 192.168.40.2
-----------------------------
ST:
ip pool vlan30
gateway-list 192.168.30.254
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.1 192.168.30.2
ip pool vlan40
gateway-list 192.168.40.254
network 192.168.40.0 mask 255.255.255.0
excluded-ip-address 192.168.40.1 192.168.40.2
-----------------------------