人的記憶力會(huì)隨著歲月的流逝而衰退,,寫作可以彌補(bǔ)記憶的不足,,將曾經(jīng)的人生經(jīng)歷和感悟記錄下來(lái),也便于保存一份美好的回憶,。寫范文的時(shí)候需要注意什么呢,?有哪些格式需要注意呢,?以下是小編為大家收集的優(yōu)秀范文,,歡迎大家分享閱讀,。
華為交換機(jī)基本配置篇一
sys
sysname r2
int e2/0
ip address 192.1.1.2 255.255.255.0
int e1/0
ip address 10.80.1.1 255.255.255.0
nat地址池配置:
r1:
sys
sysname r1
int e1/0
ip address 192.168.3.1 255.255.255.0
int e2/0
ip address 192.1.1.1 255.255.255.0
nat address-group 1 192.1.1.1 192.1.1.5 配置地址池
undo address-group 1 刪除地址池
acl number 2001 創(chuàng)建訪問(wèn)列表
rule permit source 192.168.1.0 0.0.0.255
允許192.168.1.0/24網(wǎng)段地址轉(zhuǎn)換(ethernet2/0指路由器wan口):
int e2/0
nat outbound 2001 address-group 1 啟用協(xié)議
ip route 0.0.0.0 0.0.0.0 192.1.1.2 默認(rèn)路由
r2:
sys
sysname r2
int e1/0
ip address 10.80.1.1 255.255.255.0
int e2/0
ip address 192.1.1.2 255.255.255.0
1,、vlan劃分方案
-------------------------------------------------- ------------------
| 部門 | vlan名 | ip地址 | 端口分配 |
-------------------------------------------------- ------------------
| j室 | vlan10 | 192.168.10.1/24 | ethernet 3/1 |
| k室 | vlan20 | 192.168.20.1/24 | ethernet 3/2 |
| c室 | vlan30 | 192.168.30.1/24 | ethernet 3/3 |
| server | vlan40 | 192.168.0.1/24 | ethernet 3/{4,5,6} |
-------------------------------------------------- ------------------
2,、顯示vlan信息的命令
顯示指定vlan 的相關(guān)信息。display vlan vid
顯示指定vlan 配置的最大處理報(bào)文數(shù)目,。display vlan max-packet-process vid
顯式指定vlan 的報(bào)文統(tǒng)計(jì)信息,,包括接收和發(fā)送的報(bào)文數(shù)目。display vlan statistics vid vid
顯示某個(gè)接口的vlan 配置信息,。display vlan interface interface-type interface-num
清除指定vlan 的報(bào)文統(tǒng)計(jì)信息,。reset vlan statistics vid vid
3、配置物理端口
配置路由器,,進(jìn)入ethernet 端口視圖,,指定端口的鏈路類型,把端口加入到指定vlan中,,注意access端口加入的vlan不能是vlan1,。
# 配置ethernet3/1
system-view
h3c interface ethernet 3/1 進(jìn)入端口1
h3c-ethernet3/1 port link-type access 設(shè)置端口類型為access
h3c-ethernet3/1 port access vlan 10 把該端口加到vlan10中
h3c-ethernet3/1 quit
# 配置ethernet3/2
h3c interface ethernet 3/2
h3c-ethernet3/2 port link-type access
h3c-ethernet3/2 port access vlan 20
h3c-ethernet3/2 quit
# 配置ethernet3/3
h3c interface ethernet 3/3
h3c-ethernet3/3 port link-type access
h3c-ethernet3/3 port access vlan 30
h3c-ethernet3/3 quit
# 配置ethernet3/4
h3c interface ethernet 3/4
h3c-ethernet3/4 port link-type access
h3c-ethernet3/4 port access vlan 40
h3c-ethernet3/4 quit
# 配置ethernet3/5
h3c interface ethernet 3/5
h3c-ethernet3/5 port link-type access
h3c-ethernet3/5 port access vlan 40
h3c-ethernet3/5 quit
# 配置ethernet3/6
h3c interface ethernet 3/6
h3c-ethernet3/6 port link-type access
h3c-ethernet3/6 port access vlan 40
h3c-ethernet3/6 quit
4、配置虛擬端口
vlan之間要實(shí)現(xiàn)互通,,需要配置相應(yīng)的以太網(wǎng)子接口,,即vlan 對(duì)應(yīng)的路由接口,創(chuàng)建并進(jìn)入相應(yīng)的子接口視圖,,為其配置相應(yīng)的封裝協(xié)議和關(guān)聯(lián)的vlan id,,及ip 地址和掩碼,ethernet 3/0 是三層虛擬端口,。
# 配置ethernet 3/0.1
h3c interface ethernet 3/0.1 創(chuàng)建并進(jìn)入子接口
h3c-ethernet3/0.1 vlan-type dot1q vid 10 設(shè)置以太網(wǎng)子接口的封裝類型以及相關(guān)聯(lián)的vlan id
h3c-ethernet3/0.1 ip address 192.168.10.1 255.255.255.0
h3c-ethernet3/0.1 quit
# 配置ethernet 3/0.2
h3c interface ethernet 3/0.2
h3c-ethernet3/0.2 vlan-type dot1q vid 20
h3c-ethernet3/0.2 ip address 192.168.20.1 255.255.255.0
h3c-ethernet3/0.2 quit
# 配置ethernet 3/0.3
h3c interface ethernet 3/0.3
h3c-ethernet3/0.3 vlan-type dot1q vid 30
h3c-ethernet3/0.3 ip address 192.168.30.1 255.255.255.0
h3c-ethernet3/0.3 quit
# 配置ethernet 3/0.4
h3c interface ethernet 3/0.4
h3c-ethernet3/0.4 vlan-type dot1q vid 40
h3c-ethernet3/0.4 ip address 192.168.0.1 255.255.255.0
h3c-ethernet3/0.4 quit
1,、檢測(cè)dhcp服務(wù)器
display dhcp server ip-in-use 查看地址池動(dòng)態(tài)地址綁定信息
display dhcp server conflict 查看dhcp地址沖突的統(tǒng)計(jì)信息
display dhcp server statistics 查看dhcp服務(wù)器的統(tǒng)計(jì)信息
display dhcp servertree 查看dhcp地址池結(jié)構(gòu)
2、具體配置
#公共配置(server和relay都適用)
system-view 進(jìn)入系統(tǒng)視圖
h3c dhcp enable 使能dhcp服務(wù)
h3c dhcp server detect 使能偽dhcp服務(wù)器檢測(cè)功能
#全局地址池配置
h3c dhcp select global interface ethernet 3/0.1 to ethernet 3/0.4 配置接口工作在dhcp server模式,,從全局地址池分配地址
h3c dhcp server ip-pool vlan10 創(chuàng)建全局地址池vlan10(最多支持128個(gè)全局地址池/路由器)
h3c-ip-pool network 192.168.10.0 mask 255.255.255.0 配置動(dòng)態(tài)分配的ip地址范圍(只可配置1個(gè)/地址池)
h3c-ip-pool expired day 7 hour 23 minute 59 配置租約
h3c-ip-pool domain-name 配置域名
h3c-ip-pool dns-list ip-address 192.168.0.6 202.106.0.20 202.106.196.115 配置dns(最多8個(gè)/地址池)
h3c-ip-pool gateway-list ip-address 192.168.10.1 配置默認(rèn)網(wǎng)關(guān)(最多8個(gè)/地址池)
h3c dhcp server forbidden-ip 192.168.10.1 192.168.10.10 配置保留ip地址范圍(可配置多個(gè)/地址池)
h3c dhcp server relay information enable 使能dhcp server支持option 82
#接口地址池配置
h3c dhcp select interface interface ethernet 3/0.1 to ethernet 3/0.4 (指虛擬接口還是指物理接口???)
配置多個(gè)接口工作在dhcp server模式,,從接口地址池分配地址,同時(shí)自動(dòng)創(chuàng)建“接口地址池”
h3c dhcp server expired day 7 hour 23 minute 59 interface ethernet 3/0.1 to ethernet 3/0.4
h3c dhcp server domain-name interface ethernet 3/0.1 to ethernet 3/0.4
h3c dhcp server dns-list ip-address 192.168.0.6 202.106.0.20 202.106.196.115 interface ethernet 3/0.1 to ethernet 3/0.4
h3c interface ethernet 3/0.1
h3c-interface gateway-list ip-address 192.168.10.1
h3c dhcp server forbidden-ip 192.168.10.1 192.168.10.10 (是否接口模式下配??)
h3c dhcp server relay information enable
#配置地址池和訪問(wèn)控制列表:
h3c nat address-group 1 222.128.28.172 222.128.28.174
h3c acl number 2001
h3c-acl-basic-2001rule permit source 192.168.0.0 0.0.0.255
#允許192.168.0.0/24網(wǎng)段地址轉(zhuǎn)換(ethernet3/0指路由器wan口):
h3c interface ethernet3/0
h3c-ethernet3/0 nat outbound 2001 address-group 1
#設(shè)置內(nèi)部ftp服務(wù)器:
h3c-ethernet3/0 nat server protocol tcp global 222.128.28.171 inside 192.168.0.8 ftp
#設(shè)置內(nèi)部www服務(wù)器1:
h3c-ethernet3/0 nat server protocol tcp global 222.128.28.171 inside 192.168.0.9 www
#設(shè)置內(nèi)部www服務(wù)器2:
h3c-ethernet3/0 nat server protocol tcp global 222.128.28.171 8080 inside 192.168.0.10 www
s("content_relate");【華為交換機(jī)基本配置命令匯總】相關(guān)文章:
1.
華為交換機(jī)基本配置命令
2.華為交換機(jī)基本配置命令大全
3.華為交換機(jī)基本配置命令明細(xì)盤點(diǎn)
4.華為交換機(jī)配置命令
5.2016年華為交換機(jī)基本配置命令
6.2016最新華為交換機(jī)基本配置命令
7.華為交換機(jī)配置命令大全
8.華為quidway交換機(jī)配置命令手冊(cè)