|
本帖最后由 cfjy8 于 2020-12-11 00:20 编辑
华为三层交换机,划分3个vlan并通过vlanif做DHCP到不同的三个网段,现在服务器架在其中一个网段,现在高价收购跨vlan实现PXE的教学方案:QQ664239199
现行核心交换机配置如下:
[ZYTM-10F-hexin]dis cu
#
sysname ZYTM-10F-hexin
#
vlan batch 50 70 100 150 200
#
cluster enable
ntdp enable
ndp enable
#
dot1x enable
dot1x authentication-method eap
#
undo nap slave enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
radius-server template test
radius-server shared-key cipher %NS[+B0ZNI]NZPO3JBXBHA!!
radius-server authentication 192.168.1.240 1812
radius-server accounting 192.168.1.240 1812
radius-server retransmit 2
undo radius-server user-name domain-included
#
drop-profile default
#
aaa
authentication-scheme default
authentication-scheme zytmm.com
authentication-mode radius
authentication-scheme test
authentication-mode radius
authorization-scheme default
accounting-scheme default
accounting-scheme zytmm.com
accounting-mode radius
accounting start-fail online
domain default
domain default_admin
domain zytmm.com
authentication-scheme zytmm.com
accounting-scheme zytmm.com
radius-server test
local-user admin password cipher ,J54RL(#H#)NZPO3JBXBHA!!
local-user admin privilege level 15
local-user admin service-type 8021x
#
interface Vlanif1
#
interface Vlanif50
ip address 192.168.1.1 255.255.248.0
dhcp select interface
dhcp server dns-list 192.168.0.200 61.139.2.69
#
interface Vlanif70
ip address 192.168.8.1 255.255.248.0
dhcp select interface
dhcp select relay
dhcp relay server-ip 192.168.7.247
#
interface Vlanif100
ip address 192.168.16.1 255.255.248.0
dhcp select interface
dhcp server dns-list 192.168.0.200 192.168.0.201
#
interface Vlanif150
ip address 192.168.30.1 255.255.255.0
#
interface MEth0/0/1
#
interface Eth-Trunk5
port link-type trunk
port trunk pvid vlan 50
port trunk allow-pass vlan 50 150
#
interface Eth-Trunk7
port link-type trunk
port trunk pvid vlan 70
port trunk allow-pass vlan 70 150
#
interface Eth-Trunk10
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 150
#
interface Eth-Trunk11
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 150
#
interface GigabitEthernet0/0/1
eth-trunk 5
#
interface GigabitEthernet0/0/2
eth-trunk 5
#
interface GigabitEthernet0/0/3
eth-trunk 5
#
interface GigabitEthernet0/0/4
eth-trunk 5
#
interface GigabitEthernet0/0/5
eth-trunk 7
#
interface GigabitEthernet0/0/6
eth-trunk 7
#
interface GigabitEthernet0/0/7
eth-trunk 7
#
interface GigabitEthernet0/0/8
eth-trunk 7
#
interface GigabitEthernet0/0/9
eth-trunk 10
#
interface GigabitEthernet0/0/10
eth-trunk 10
#
interface GigabitEthernet0/0/11
eth-trunk 10
#
interface GigabitEthernet0/0/12
eth-trunk 10
#
interface GigabitEthernet0/0/13
eth-trunk 11
#
interface GigabitEthernet0/0/14
eth-trunk 11
#
interface GigabitEthernet0/0/15
eth-trunk 11
#
interface GigabitEthernet0/0/16
eth-trunk 11
#
interface GigabitEthernet0/0/17
port link-type access
port default vlan 50
#
interface GigabitEthernet0/0/18
port link-type access
port default vlan 50
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
port link-type access
port default vlan 50
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
#
port-group 1
group-member GigabitEthernet0/0/1
group-member GigabitEthernet0/0/2
group-member GigabitEthernet0/0/3
group-member GigabitEthernet0/0/4
group-member GigabitEthernet0/0/5
group-member GigabitEthernet0/0/6
group-member GigabitEthernet0/0/7
group-member GigabitEthernet0/0/8
group-member GigabitEthernet0/0/9
group-member GigabitEthernet0/0/10
group-member GigabitEthernet0/0/11
group-member GigabitEthernet0/0/12
#
port-group 11
group-member GigabitEthernet0/0/13
group-member GigabitEthernet0/0/14
group-member GigabitEthernet0/0/15
group-member GigabitEthernet0/0/16
#
port-group eth5
group-member GigabitEthernet0/0/1
group-member GigabitEthernet0/0/2
group-member GigabitEthernet0/0/3
group-member GigabitEthernet0/0/4
#
port-group eth7
group-member GigabitEthernet0/0/5
group-member GigabitEthernet0/0/6
group-member GigabitEthernet0/0/7
group-member GigabitEthernet0/0/8
#
port-group eth10
group-member GigabitEthernet0/0/9
group-member GigabitEthernet0/0/10
group-member GigabitEthernet0/0/11
group-member GigabitEthernet0/0/12
#
port-group eth11
group-member GigabitEthernet0/0/13
group-member GigabitEthernet0/0/14
group-member GigabitEthernet0/0/15
group-member GigabitEthernet0/0/16
#
return
[ZYTM-10F-hexin]
|
|