三層交換機怎么設置ACL 三層交換機怎么設置ip

由于以后職業規劃為網絡工程師,開始初步鞏固基礎,希望看到的朋友能給您提供一點思路,不要忘了支持一下,謝謝
原始拓撲圖

三層交換機怎么設置ACL 三層交換機怎么設置ip

文章插圖
拓撲圖為局域網和VPN的畢業設計,今日為三層交換機下的終端配置DHCP
配置過程如下:
一、終端開啟DHCP
三層交換機怎么設置ACL 三層交換機怎么設置ip

文章插圖
二、二層交換機:
1.與終端相連接口配置:
#vlan 2Switch(config-vlan)#int f0/2Switch(config-if)#switchport mode accessSwitch(config-if)#switchport ACcess Vlan 22.與三層交換機相連接口配置
Switch(config)#int f0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
三、三層交換機:
1配置vlan
Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#int vlan2Switch(config-if)#ip address 192.168.2.1 255.255.255.02將對應接口劃入vlan
Switch(config-if)#int f 0/2Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 2Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up3 配置DHCP
Switch(config)#ip dhcp pool 2Switch(dhcp-config)#network 192.168.2.0 255.255.255.0Switch(dhcp-config)#default-router 192.168.2.1Switch(dhcp-config)#dns-server 192.168.2.2Switch(dhcp-config)#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.2.1.Switch(config)#ip dhcp excluded-address 192.168.2.1 192.168.2.2

    推薦閱讀