亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1381 | 回復(fù): 0
打印 上一主題 下一主題

我的交換機(jī)配置實(shí)驗(yàn) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-06-17 17:23 |只看該作者 |倒序?yàn)g覽

                兩臺(tái)3750交換機(jī)
一、實(shí)驗(yàn)一
一臺(tái)交換機(jī)
switch>en                                           ;進(jìn)入特權(quán)模式
switch#config terminal                              ;進(jìn)入全局配置模式
Switch(config)#hostname switch01                      ;設(shè)置交換機(jī)的主機(jī)名
switch01(config)#no ip http server                    ;關(guān)閉非加密的HTTP訪問(wèn)
switch01(config)#no ip domain lookup                  ;禁用域名解析
switch01(config)#service password-encryption
switch01(config)#enable secret test
switch01(config)#line console 0
switch01(config-line)#login
switch01(config-line)#password test
switch01(config-line)#exit
switch01(config)#line vty 0 4
switch01(config-line)#login
switch01(config-line)#password test
switch01(config-line)#exec-timeout 30 0
switch01(config-line)#exit
switch01(config)#interface vlan 1
switch01(config-if)#ip address 10.129.5.1 255.255.255.0
switch01(config-line)#exit
switch01(config)#vlan 10
switch01(config-vlan)#name vlan10
switch01(config-vlan)#exit
switch01(config)#interface vlan 10
switch01(config-if)#ip address 10.129.10.1 255.255.255.0
switch01(config-if)#exit
switch01(config)#vlan 20
switch01(config-vlan)#name vlan20
switch01(config-vlan)#exit
switch01(config)#interface vlan 20
switch01(config-if)#ip address 10.129.20.1 255.255.255.0
switch01(config-if)#exit
switch01(config)#ip routing
switch01(config)#interface gigabitEthernet 1/0/1
switch01(config-if)#switchport access vlan 10
switch01(config-if)#desc vlan10_test1
switch01(config-if)#exit
switch01(config)#interface gigabitEthernet 1/0/2
switch01(config-if)#switchport access vlan 10
switch01(config-if)#desc vlan10_test2
switch01(config-if)#exit
switch01(config)#interface gigabitEthernet 1/0/11
switch01(config-if)#switchport access vlan 20
switch01(config-if)#desc vlan20_test1
switch01(config-if)#exit
switch01(config)#interface gigabitEthernet 1/0/12
switch01(config-if)#switchport access vlan 20
switch01(config-if)#desc vlan20_test2
switch01(config-if)#exit
switch01#wr
二、實(shí)驗(yàn)二
兩臺(tái)交換機(jī)一臺(tái)做路由,其中兩臺(tái)交換機(jī)的23、24口作trunk
1、switch01的基本配置已經(jīng)做過(guò),現(xiàn)在做trunk
switch01的trunk配置
switch01(config)#interface Port-channel 1
switch01(config-if)#switchport trunk encapsulation dot1q
switch01(config-if)#switchport mode trunk
switch01(config-if)#exit
switch01(config)#interface GigabitEthernet1/0/23
switch01(config-if)#description to_switch02_g1/0/23
switch01(config-if)#switchport trunk encapsulation dot1q
switch01(config-if)#switchport mode trunk
switch01(config-if)#channel-group 1 mode on
switch01(config)#interface GigabitEthernet1/0/24
switch01(config-if)#description to_switch02_g1/0/24
switch01(config-if)#switchport trunk encapsulation dot1q
switch01(config-if)#switchport mode trunk
switch01(config-if)#channel-group 1 mode on
2、switch02
switch>en                                           ;進(jìn)入特權(quán)模式
switch#config terminal                              ;進(jìn)入全局配置模式
Switch(config)#hostname switch02                      ;設(shè)置交換機(jī)的主機(jī)名
switch02(config)#no ip http server                    ;關(guān)閉非加密的HTTP訪問(wèn)
switch02(config)#no ip domain lookup                  ;禁用域名解析
switch02(config)#service password-encryption
switch02(config)#enable secret test
switch02(config)#line console 0
switch02(config-line)#login
switch02(config-line)#password test
switch02(config-line)#exit
switch02(config)#line vty 0 4
switch02(config-line)#login
switch02(config-line)#password test
switch02(config-line)#exec-timeout 30 0
switch02(config-line)#exit
switch02(config)#interface vlan 1
switch02(config-if)#ip address 10.129.5.2 255.255.255.0
switch02(config-if)#no shut            #要no shut,否則管理IP10.129.5.2不通
switch02(config-line)#exit
switch02(config)#ip default-gateway 10.252.5.1
switch02(config)#vlan 10
switch02(config-vlan)#name vlan10
switch02(config-vlan)#exit
switch02(config)#vlan 20
switch02(config-vlan)#name vlan20
switch02(config-vlan)#exit
switch02(config)#interface gigabitEthernet 1/0/1
switch02(config-if)#switchport access vlan 10
switch02(config-if)#desc vlan10_test1
switch02(config-if)#exit
switch02(config)#interface gigabitEthernet 1/0/2
switch02(config-if)#switchport access vlan 10
switch02(config-if)#desc vlan10_test2
switch02(config-if)#exit
switch02(config)#interface gigabitEthernet 1/0/11
switch02(config-if)#switchport access vlan 20
switch02(config-if)#desc vlan20_test1
switch02(config-if)#exit
switch02(config)#interface gigabitEthernet 1/0/12
switch02(config-if)#switchport access vlan 20
switch02(config-if)#desc vlan20_test2
switch02(config-if)#exit
switch02(config)#interface Port-channel 1
switch02(config-if)#switchport trunk encapsulation dot1q
switch02(config-if)#switchport mode trunk
switch02(config-if)#exit
switch02(config)#interface GigabitEthernet1/0/23
switch02(config-if)#description to_switch01_g1/0/23
switch02(config-if)#switchport trunk encapsulation dot1q
switch02(config-if)#switchport mode trunk
switch02(config-if)#channel-group 1 mode on
switch02(config)#interface GigabitEthernet1/0/24
switch02(config-if)#description to_switch01_g1/0/24
switch02(config-if)#switchport trunk encapsulation dot1q
switch02(config-if)#switchport mode trunk
switch02(config-if)#channel-group 1 mode on
switch02(config-if)#exit
switch02(config)#exit
switch02#wr
實(shí)驗(yàn)三:兩臺(tái)交換機(jī)做冗余路由
1、switch01
switch01>en                                          
switch01#config terminal
switch01(config)#interface Vlan1
switch01(config-if)#ip address 10.129.5.1 255.255.255.0
switch01(config-if)#standby 255 ip 10.129.5.254
switch01(config-if)#standby 255 preempt delay minimum 10
switch01(config-if)#exit
switch01(config)#interface Vlan10
switch01(config-if)#ip address 10.129.10.1 255.255.255.0
switch01(config-if)#standby 10 ip 10.129.10.254
switch01(config-if)#standby 10 preempt delay minimum 10
switch01(config-if)#exit
switch01(config)#interface Vlan20
switch01(config-if)#ip address 10.129.20.1 255.255.255.0
switch01(config-if)#standby 20 ip 10.129.20.254
switch01(config-if)#standby 20 preempt delay minimum 10
switch01(config-if)#exit
switch01(config)#
switch01#wr
2、switch02
switch02>en                                          
switch02#config terminal
switch02(config)#interface Vlan1
switch02(config-if)#ip address 10.129.5.2 255.255.255.0
switch02(config-if)#standby 255 ip 10.129.5.254
switch02(config-if)#standby 255 priority 90
switch02(config-if)#standby 255 preempt delay minimum 10
switch02(config-if)#exit
switch02(config)#interface Vlan10
switch02(config-if)#ip address 10.129.10.2 255.255.255.0
switch02(config-if)#standby 10 ip 10.129.10.254
switch02(config-if)#standby 10 priority 90
switch02(config-if)#standby 10 preempt delay minimum 10
switch02(config-if)#exit
switch02(config)#interface Vlan20
switch02(config-if)#ip address 10.129.20.2 255.255.255.0
switch02(config-if)#standby 20 ip 10.129.20.254
switch02(config-if)#standby 20 priority 90
switch02(config-if)#standby 20 preempt delay minimum 10
switch02(config-if)#exit
switch02(config)#
switch02#wr
               
               
               
               
               

本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/12479/showart_1967521.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP