久久精品精选,精品九九视频,www久久只有这里有精品,亚洲熟女乱色综合一区
    分享

    三層交換機與路由器的配置

     紅兒管 2017-07-23

    三層交換機與路由器的配置 實例(圖解)

    目的:學(xué)會使用三層交換與路由器讓處于不同網(wǎng)段的網(wǎng)絡(luò)相互通信

    實驗步驟:一:二層交換機的配置:

    在三個二層交換機上分別劃出兩VLAN,并將二層交換機上與三層交換或路由器上的接線設(shè)置為trunk接口

    二:三層交換機的配置:

    1:首先在三層交換上劃出兩個VLAN,并進(jìn)入VLAN為其配置IP,此IP將作為與他相連PC的網(wǎng)關(guān)。 2:將與二層交換機相連的線同樣設(shè)置為trunk接線,并將三層交換與路由器連接的線設(shè)置為路由接口(no switchsport)

    3:將路由器和下面的交換機進(jìn)行單臂路由的配置

    實驗最終結(jié)果:拓?fù)鋱D下各個PC均能相互通信



    交換機的配置命令:

    SW 0:

    Switch>

    Switch>en

    Switch#conf

    Configuring from terminal, memory, or network [terminal]?

    Enter configuration commands, one per line. End with CNTL/Z.

    Switch(config)#vlan 2

    Switch(config-vlan)#exit

    Switch(config)#int f0/2

    Switch(config-if)#switchport access vlan 2

    Switch(config-if)#no shut

    Switch(config-if)#int f0/3

    Switch(config-if)#switchport mode trunk

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#exit

    Switch(config)#

    SW 1:

    Switch>en

    Switch#conf

    Configuring from terminal, memory, or network [terminal]?

    Enter configuration commands, one per line. End with CNTL/Z.

    Switch(config)#int f0/2

    Switch(config-if)#switchport access vlan 2

    % Access VLAN does not exist. Creating vlan 2

    Switch(config-if)#no shut

    Switch(config-if)#exit

    Switch(config)#int f0/3

    Switch(config-if)#switchport mode trunk

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#

    SW 2:

    Switch>en

    Switch#conf

    Configuring from terminal, memory, or network [terminal]?

    Enter configuration commands, one per line. End with CNTL/Z.

    Switch(config)#int f0/2

    Switch(config-if)#switchport access vlan 2

    % Access VLAN does not exist. Creating vlan 2

    Switch(config-if)#exit

    Switch(config)#int f0/3

    Switch(config-if)#switchport mode trunk

    Switch(config-if)#

    三層交換的配置命令:

    Switch>en

    Switch#conf

    Configuring from terminal, memory, or network [terminal]?

    Enter configuration commands, one per line. End with CNTL/Z.

    Switch(config)#int f0/1

    Switch(config-if)#switchport mode trunk

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down Switch(config-if)#exit

    Switch(config)#int f0/2

    Switch(config-if)#switchport mode trunk

    Switch(config-if)#exit

    Switch(config)#vlan 2

    Switch(config-vlan)#exit

    Switch(config)#int vlan 1

    Switch(config-if)#no shut

    %LINK-5-CHANGED: Interface Vlan1, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

    Switch(config-if)#ip address 192.168.1.168 255.255.255.0

    Switch(config-if)#exit

    Switch(config)#int vlan 2

    %LINK-5-CHANGED: Interface Vlan2, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip add

    Switch(config-if)#ip address 192.168.2.168 255.255.255.0

    Switch(config-if)#

    %LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#exit

    Switch(config)#int f0/3

    Switch(config-if)#no switchport

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#

    Switch(config-if)#ip address 192.168.10.1 255.255.255.0

    Switch(config-if)#no shut

    Switch(config-if)#exit

    Switch(config)#ip routing

    Switch(config-if)#exit

    Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2

    Switch(config)#

    路由器的配置:

    Router>en

    Router#conf

    Configuring from terminal, memory, or network [terminal]?

    Enter configuration commands, one per line. End with CNTL/Z.

    Router(config)#int f0/0

    Router(config-if)#no shut

    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

    Router(config-if)#exit

    Router(config)#int f0/1

    Router(config-if)#no shut

    %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#exit

    Router(config)#int f0/0

    Router(config-if)#no shut

    Router(config-if)#exit

    Router(config)#int f0/0.1

    Router(config-subif)#encapsulation dot1Q 1

    Router(config-subif)#ip address 192.168.3.168 255.255.255.0

    Router(config-subif)#exit

    Router(config)#int f0/0.2

    Router(config-subif)#encapsulation dot1Q 2

    Router(config-subif)#ip add

    Router(config-subif)#ip address 192.168.4.168 255.255.255.0

    Router(config-subif)#exit

    Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.1

    Router(config)#exit

    %SYS-5-CONFIG_I: Configured from console by console Router#conf

    Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/1

    Router(config-if)#ip add

    Router(config-if)#ip address 192.168.10.2 255.255.255.0 Router(config-if)#

    相關(guān)搜索 

      本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
      轉(zhuǎn)藏 分享 獻(xiàn)花(0

      0條評論

      發(fā)表

      請遵守用戶 評論公約

      主站蜘蛛池模板: 亚洲高清无在码在线电影不卡| 国产在线亚州精品内射| 黄又色又污又爽又高潮| 亚洲国产日韩在线人成蜜芽| 精品人无码一区二区三区| 在线视频中文字幕二区| 日韩免费无码一区二区三区| 波多野结衣中文字幕一区二区三区| 久久精品国产中文字幕| 国产亚洲999精品AA片在线爽| 亚洲人成无码网站18禁| 性欧美VIDEOFREE高清大喷水 | 亚洲乱亚洲乱少妇无码| 亚洲精品日韩久久精品| 国产真实伦在线观看视频| 亚洲av日韩av永久无码电影| 呦交小U女精品视频| 日韩国产中文字幕精品| 国产精品一区二区久久不卡| 人妻系列中文字幕精品| 日本A级视频在线播放| 亚洲人妻系列中文字幕| 国产乱子影视频上线免费观看| 国产欧美日韩亚洲一区二区三区| 亚洲人成伊人成综合网久久久| 麻豆国产AV剧情偷闻女邻居内裤| 精品久久人人妻人人做精品| 亚洲精品成人福利网站| 亚洲国产精品成人无码区| 国产午夜精品一区理论片| 国产日韩入口一区二区| 亚州少妇无套内射激情视频 | 亚洲综合小说另类图片五月天| 国产成人啪精品午夜网站| 毛片免费观看天天干天天爽| 久久天天躁夜夜躁狠狠85| 97视频精品全国免费观看| 日日婷婷夜日日天干| 色天天天综合网色天天| 99久久亚洲综合精品成人网 | 精品一区二区免费不卡|