
1.先熟悉業(yè)務(wù)板上對(duì)應(yīng)的端口:
第一塊業(yè)務(wù)板,對(duì)應(yīng)的接口就是 interface GigaEthernet1/1(interface TGigaEthernet1/1)
第二塊業(yè)務(wù)板,對(duì)應(yīng)的接口就是 interface GigaEthernet2/1(interface TGigaEthernet2/1)
依次類推、、、、
2.Telnet服務(wù)配置:
先開(kāi)啟3A服務(wù):
aaa authentication login default local
aaa authentication enable default enable
配置用戶名與密碼:
username admin password switch
配置進(jìn)入特權(quán)模式的密碼:
enable password 0 switch level 15
設(shè)置密碼為明文:
service password-encryption
配置telnet相關(guān)信息:
Line vty 0 4 //設(shè)置允許5個(gè)用戶同時(shí)telnet
Login //設(shè)置登錄時(shí)要輸入密碼
Password switch //設(shè)置登錄密碼
3.DHCP服務(wù)設(shè)定:
先開(kāi)啟DHCP服務(wù)器功能:ip dhcpd enable
創(chuàng)建相應(yīng)的vlan:vlan 1002
設(shè)定DHCP地址池:
ip dhcpd pool vlan1002 //創(chuàng)建名為vlan1002的DHCP地址池
network 172.172.0.0 255.255.254.0 //設(shè)定分配網(wǎng)段
range 172.172.0.55 172.172.1.254 //設(shè)定可以分配地址范圍
default-router 172.172.0.1 //設(shè)定網(wǎng)關(guān)
dns-server 114.114.114.114 //設(shè)定主DNS
4.靜態(tài)路由設(shè)置:
缺省路由設(shè)置:ip route default 172.31.0.93
靜態(tài)路由設(shè)置:ip route 192.167.0.0 255.255.255.0 172.31.30.254
5.接口模式設(shè)置:
所有接口默認(rèn)是access模式,如要設(shè)置接口屬于某個(gè)vlan:
interface GigaEthernet1/2 //進(jìn)入接口
switchport pvid 2 //設(shè)置pvid為2 則此接口屬于vlan2
接口trunk模式設(shè)置:
switchport mode trunk //設(shè)置接口模式為trunk口
switchport pvid 2 //把trunk pvid設(shè)為vlan2的
switchport trunk vlan-allowed 40-60 //設(shè)置接口屬于vlan40-60