久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 930|回復: 0
打印 上一主題 下一主題
收起左側

配置路由器

[復制鏈接]
跳轉到指定樓層
樓主
ID:506965 發表于 2019-4-8 14:15 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
配置路由器的ip地址
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host
Router(config)#hostname R1
R1(config)#int f0/0
R1(config-if)#ip addr 1.1.0.1255.255.255.0
R1(config-if)#no shut
R1(config-if)#e
*Mar  1 00:04:15.299:%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:04:16.299:%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed stateto upxit
R1(config)#int f0/1
R1(config-if)#ip addr 1.2.0.1255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
*Mar  1 00:04:41.843:%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar  1 00:04:42.843:%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed stateto up
配置路由器的回環端口:
R1(config)#int lo0
R1(config-if)#ip add
*Mar  1 00:04:56.731:%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upr100.1.0.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip addr 100.1.1.1 255.255.255.0
                  ^
% Invalid input detected at '^' marker.
R1(config)#int lo1
R1(config-if)#ip addr 100.1.1.1 255.255.255.0
*Mar  1 00:06:14.391:%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1,p addr 100.1.1.1255.255.255.0
R1(config-if)#int lo2                        
R1(config-if)#ip addr 100.1.1.1 255.255.255.0
*Mar  1 00:06:32.055:%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2,p addr 100.1.2.1255.255.255.0
R1(config-if)#int lo3                        
R1(config-if)#ip addr 100.1.2.1 255.255.255.0
*Mar  1 00:06:54.587:%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3,p addr 100.1.3.1255.255.255.0
R1(config-if)#exit
R1(config)#exit
R1#
*Mar  1 00:09:52.455:%SYS-5-CONFIG_I: Configured from console by console
R1#show proto
R1#show protocols
Global values:
  Internet Protocol routing isenabled
FastEthernet0/0 is up, line protocol is up
  Internet address is 1.1.0.1/24
FastEthernet0/1 is up, line protocol is up
  Internet address is 1.2.0.1/24
Loopback0 is up, line protocol is up
  Internet address is 100.1.0.1/24
Loopback1 is up, line protocol is up
  Internet address is 100.1.1.1/24
Loopback2 is up, line protocol is up
  Internet address is 100.1.2.1/24
Loopback3 is up, line protocol is up
  Internet address is 100.1.3.1/24
R1#
配置靜態路由:
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip route 101.1.0.0 255.255.255.0 1.1.0.2
R1(config)#ip route 101.1.0.0 255.255.255.0 1.2.0.25
R1(config)#ip route 101.1.2.0 255.255.255.0 1.1.0.2  
R1(config)#ip route 101.1.2.0 255.255.255.0 1.2.0.25
R1(config)#ip route 101.1.1.0 255.255.255.0 1.2.0.2  
R1(config)#ip route 101.1.1.0 255.255.255.0 1.1.0.25
R1(config)#ip route 101.1.3.0 255.255.255.0 1.2.0.2  
R1(config)#ip route 101.1.3.0 255.255.255.0 1.1.0.25
R1(config)#exit
R1#show
*Mar  1 00:21:19.331:%SYS-5-CONFIG_I: Configured from console by consoleip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRPexternal, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA externaltype 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1,E2 - OSPF external type 2
       i - IS-IS, su - IS-ISsummary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * -candidate default, U - per-user static route
       o - ODR, P - periodicdownloaded static route
Gateway of last resort is not set
     1.0.0.0/24is subnetted, 2 subnets
C       1.1.0.0is directly connected, FastEthernet0/0
C       1.2.0.0is directly connected, FastEthernet0/1
     100.0.0.0/24 is subnetted, 4subnets
C       100.1.1.0 is directlyconnected, Loopback1
C       100.1.0.0 is directlyconnected, Loopback0
C       100.1.3.0 is directlyconnected, Loopback3
C       100.1.2.0 is directlyconnected, Loopback2
     101.0.0.0/24 is subnetted, 4subnets
S       101.1.0.0 [1/0] via 1.1.0.2
S       101.1.1.0 [1/0] via 1.2.0.2
S       101.1.2.0 [1/0] via 1.1.0.2
S       101.1.3.0 [1/0] via 1.2.0.2
關閉r1f0/0端口:
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#shut
R1(config-if)#
*Mar  1 00:25:43.671:%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administrativelydown
*Mar  1 00:25:44.671:%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed stateto down
R1(config-if)#shut
R1(config-if)#end
R1#sh
*Mar  1 00:26:20.527:%SYS-5-CONFIG_I: Configured from console by consoleow ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRPexternal, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA externaltype 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1,E2 - OSPF external type 2
       i - IS-IS, su - IS-ISsummary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * -candidate default, U - per-user static route
       o - ODR, P - periodicdownloaded static route
Gateway of last resort is not set
     1.0.0.0/24is subnetted, 1 subnets
C       1.2.0.0is directly connected, FastEthernet0/1
     100.0.0.0/24 is subnetted, 4subnets
C       100.1.1.0 is directlyconnected, Loopback1
C       100.1.0.0 is directlyconnected, Loopback0
C       100.1.3.0 is directlyconnected, Loopback3
C       100.1.2.0 is directlyconnected, Loopback2
     101.0.0.0/24 is subnetted, 4subnets
S       101.1.0.0 [5/0] via 1.2.0.2
S       101.1.1.0 [1/0] via 1.2.0.2
S       101.1.2.0 [5/0] via 1.2.0.2
S       101.1.3.0 [1/0] via 1.2.0.2
打開r1f0/0端口
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#no shut
R1(config-if)#
*Mar  1 00:28:45.635:%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:28:46.635: %LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/0, changed state to up
配置動態路由:
R1(config-if)#
R1(config-if)#exit
R1(config)#no ip rout
R1(config)#no ip routing
R1(config)#ip routing
R1(config)#router rip
R1(config-router)#net
R1(config-router)#network 1.0.0.0
R1(config-router)#net
R1(config-router)#network 100.0.0.0
R1(config-router)#end
R1#sho
*Mar  1 00:32:48.867:%SYS-5-CONFIG_I: Configured from console by consolew ip rotoc
R1#show ip proto
R1#show ip protocols
Routing Protocol is "rip"
  Outgoing update filter list forall interfaces is not set
  Incoming update filter list forall interfaces is not set
  Sending updates every 30seconds, next due in 22 seconds
  Invalid after 180 seconds, holddown 180, flushed after 240
  Redistributing: rip
  Default version control: sendversion 1, receive any version
    Interface             Send  Recv Triggered RIP  Key-chain
    FastEthernet0/0       1    1 2                                 
    FastEthernet0/1       1    1 2                                 
    Loopback0             1     1 2                                 
Loopback1             1     1 2
Loopback2             1     1 2                                 
    Loopback3             1     1 2                                 
  Automatic network summarizationis in effect
  Maximum path: 4
  Routing for Networks:
    1.0.0.0
    100.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    1.2.0.2              120      00:00:03
    1.1.0.2              120      00:00:02
  Distance: (default is 120)
R1#
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router rip
R1(config-router)#vers   
R1(config-router)#version 2
R1(config-router)#no-
R1(config-router)#no-auto
R1(config-router)#no auto-
R1(config-router)#no auto-summary
R1(config-router)#
R1 con0 is now available
Press RETURN to get started.
*Mar  1 00:48:02.803:%SYS-5-CONFIG_I: Configured from console by console

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 麻豆国产一区二区三区四区 | 99精品免费视频 | 少妇一级淫片免费播放 | av黄色免费| 黄色av免费网站 | 日韩一区在线播放 | caoporn国产| 亚洲人成人一区二区在线观看 | 日韩精品一区二区三区在线 | 国产精品久久久久久久久 | 天天干夜夜操 | 日韩欧美二区 | 亚洲欧洲成人 | 久久久久久中文字幕 | 午夜在线观看视频 | 久久久久国产一区二区三区 | 色网在线播放 | 国产99视频精品免费播放照片 | 日本不卡一区 | 一区久久 | 人人爽日日躁夜夜躁尤物 | 狠狠干狠狠操 | 久久久.com | 亚洲福利在线观看 | 久久久久www| 国产日韩精品视频 | 日本成人福利 | 久久综合影院 | 91看片网 | 啪视频在线 | 亚洲性视频 | 成人自拍视频网站 | 国产精品视频久久久久 | 久久www免费人成看片高清 | 久草视频在 | 欧美精品三区 | av黄在线观看 | 精品国产乱码久久久久久蜜退臀 | 亚洲免费人成在线视频观看 | 午夜精品一区二区三区在线视频 | 久久久免费毛片 |