怎么在路由器上作动态路由OSPF,实现三个网段间的主机互相ping通!!!主要说一下配置命令和网络如何搭建 请问ensp中 有两个路由器,每个路由器下都连接着一个S57...

\u5173\u4e8e\u540c\u4e00\u4e2a\u8def\u7531\u5668\u4e2d\u4e0d\u540c\u7f51\u6bb5\u4e4b\u95f4\u80fd\u4e92\u76f8PING\u7684\u95ee\u9898\u3002

\u8fd9\u4e2a\u4e3b\u8981\u662f\u5728\u7535\u8111\u4e2d\u8bbe\u7f6e,\u4e0d\u540c\u7684\u7535\u8111\u7cfb\u7edf\u4e0d\u4e00\u6837,WIN XP\u548cWIN7\u53ca\u4ee5\u4e0a\u7684\u7248\u672c\u6709\u5dee\u5f02,\u4f60\u53ef\u4ee5\u767e\u5ea6"WIN XP\u5c40\u57df\u7f51\u5171\u4eab\u8bbe\u7f6e"\u548c"WIN7\u5c40\u57df\u7f51\u5171\u4eab\u8bbe\u7f6e",\u6700\u7b80\u5355\u7684\u662f\u5728"\u6211\u7684\u7535\u8111"\u53f3\u952e,"\u5c5e\u6027"\u4e2d\u627e\u5230\u5de5\u4f5c\u7ec4,\u628a\u4e24\u53f0\u7535\u8111\u7684\u5de5\u4f5c\u7ec4\u66f4\u6539\u4e00\u4e0b,\u8fd9\u6837\u57fa\u672c\u8fbe\u5230\u4f60\u8981\u7684\u6548\u679c.\u5982\u679c\u613f\u610f\u53ef\u4ee5\u76f4\u63a5\u7559\u8a00,\u6211\u5e2e\u4f60\u8fdc\u7a0b\u770b\u4e00\u4e0b\u4e5f\u884c.,\u5e0c\u671b\u4f60\u901a\u6ee1\u610f.

2\u4e2a\u8def\u7531\u5668\u8981\u4e92\u76f8\u4f20\u8def\u7531\u5fc5\u987b\u624b\u5199\u9759\u6001\u8def\u7531\uff0c\u6216\u8005\u8fd0\u884c\u52a8\u6001\u8def\u7531\u534f\u8bae\uff0c\u6bd4\u65b9\u8bf4rip\uff0cospf\uff0cis-is\uff0cbgp\u7b49\u3002

cisco 路由器或三层交换机上均可配置 

下面是思科三层交换机(35系列)的详细配置

SW1 配置

sW1(config)#do sh run

Building configuration...

Current configuration : 1429 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname sW1

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 172.18.254.20 255.255.255.0

!

interface FastEthernet0/0

no switchport

ip address 192.168.1.2 255.255.255.0

!

interface FastEthernet0/1

no switchport

ip address 172.18.252.1 255.255.255.252

!

interface FastEthernet0/2

no switchport

no ip address

shutdown

!

interface FastEthernet0/3

no switchport

ip address 172.18.252.5 255.255.255.252

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface Vlan1

no ip address

!

router ospf 7

router-id 172.18.254.20

log-adjacency-changes

network 172.18.252.0 0.0.0.3 area 0

network 172.18.252.4 0.0.0.3 area 0

network 172.18.254.0 0.0.0.255 area 0

default-information originate

!

ip http server

ip route 0.0.0.0 0.0.0.0 192.168.1.1

!

!

!

!

!

!

control-plane

!

!

!

!

!

!

!

!

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

login

!

!

end

SW2 配置

SW2#sh run

Building configuration...

Current configuration : 1739 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname SW2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 172.18.254.30 255.255.255.0

!

interface FastEthernet0/0

!

interface FastEthernet0/1

no switchport

ip address 172.18.252.2 255.255.255.252

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

switchport mode trunk

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface Vlan1

no ip address

!

interface Vlan110

ip address 172.18.110.254 255.255.255.0

!

interface Vlan111

ip address 172.18.111.254 255.255.255.0

!

interface Vlan112

ip address 172.18.112.254 255.255.255.0

!

interface Vlan113

ip address 172.18.113.254 255.255.255.0

!

interface Vlan114

ip address 172.18.114.254 255.255.255.0

!

interface Vlan115

ip address 172.18.115.254 255.255.255.0

!

router ospf 7

router-id 172.18.254.30

log-adjacency-changes

network 172.18.110.0 0.0.0.255 area 1

network 172.18.111.0 0.0.0.255 area 1

network 172.18.112.0 0.0.0.255 area 1

network 172.18.113.0 0.0.0.255 area 1

network 172.18.114.0 0.0.0.255 area 1

network 172.18.115.0 0.0.0.255 area 1

network 172.18.252.0 0.0.0.3 area 0

network 172.18.254.0 0.0.0.255 area 0

!

ip http server

!

!

!

!

!

!

control-plane

!

!

!

!

!

!

!

!

!

line con 0

line aux 0

line vty 0 4

login

!

!

end

SW3 配置

sw3#sh run

Building configuration...

Current configuration : 1385 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname sw3

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

ip address 172.18.254.40 255.255.255.0

!

interface FastEthernet0/0

!

interface FastEthernet0/1

no switchport

ip address 172.18.252.6 255.255.255.252

!

interface FastEthernet0/2

!

interface FastEthernet0/3

switchport access vlan 120

!

interface FastEthernet0/4

switchport access vlan 121

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface Vlan1

no ip address

!

interface Vlan120

ip address 172.18.120.254 255.255.255.0

!

interface Vlan121

ip address 172.18.121.254 255.255.255.0

!

router ospf 7

router-id 172.18.254.40

log-adjacency-changes

network 172.18.120.0 0.0.0.255 area 2

network 172.18.121.0 0.0.0.255 area 2

network 172.18.252.4 0.0.0.3 area 0

network 172.18.254.0 0.0.0.255 area 0

!

ip http server

!

!

!

!

!

!

control-plane

!

!

!

!

!

!

!

!

!

line con 0

line aux 0

line vty 0 4

!

!

end



需要高端路由器3个

  • 褰撹鍏徃鏈夊涓垎鏀満鏋,鍐冲畾浣跨敤鍔ㄦ佽矾鐢鍗忚OSP
    绛旓細OSPF鍒哸rea鏄竴涓柟娉曪紝褰撶劧濡傛灉鍒嗘敮鍒嗘暎鍦ㄤ笉鍚屽湴鏂圭殑璇濅篃鍙互鑰冭檻MPLS VPN绛夌殑瑙e喅鏂规硶
  • 璁$畻鏈虹綉缁-缃戠粶灞-璺敱閫夋嫨鍗忚
    绛旓細鑷不绯荤粺涔嬮棿鐨璺敱閫夋嫨涔熷彨鍋氬煙闂磋矾鐢遍夋嫨(interdomain routing),鑰屽湪鑷不绯荤粺鍐呴儴璺敱閫夋嫨鍙仛鍩熷唴璺敱閫夋嫨(intradomain routing)銆傚浘4-31鏄袱涓嚜娌荤郴缁熶簰杩炲湪涓璧风殑绀烘剰鍥俱傛瘡涓嚜娌荤郴缁熻嚜宸卞喅瀹氬湪鏈嚜娌荤郴缁熷唴閮ㄨ繍琛屽摢涓涓唴閮ㄨ矾鐢遍夋嫨鍗忚锛堜緥濡傦紝鍙互鏄疪IP,涔熷彲浠ユ槸OSP鈩夛級銆備絾姣忎釜鑷不绯荤粺閮芥湁涓涓...
  • 璁$畻鏈虹瓑绾ц冭瘯涓夌骇缃戠粶鎶鏈殑浣滃搧鐩綍
    绛旓細2.3 瀹炶浠诲姟涓夛細缃戠粶鍏抽敭璁惧閫夊瀷2.2.4 瀹炶浠诲姟鍥涳細缃戠粶鏈嶅姟鍣ㄩ夊瀷2.2.5 瀹1鍦充换鍔′簲锛氱綉缁滅郴缁熷畨鍏ㄨ璁$殑鍩烘湰鏂规硶涔犻绗3绔 IP鍦板潃瑙勫垝璁捐鎶鏈3.1 鍩虹鐭ヨ瘑3.1.1 IP鍦板潃鐨勬蹇典笌鍒掑垎鍦板潃鏂版妧鏈殑鐮旂┒3.1.2 鏍囧噯鍒嗙被鐨処P鍦板潃3.1.3 鍒掑垎瀛愮綉鐨勪笁绾у湴鍧缁撴瀯3.1.4 鏃犵被鍩熼棶璺敱锛圕IDR锛...
  • 扩展阅读:动态ip多久变一次 ... wan和lan可以随便接吗 ... vue动态路由三种方法 ... 动态ip自动检测不出来 ... 192.168.1.1 路由器设置 ... 路由器管理页面入口 ... 路由器第一次使用教程 ... 怎么踢掉连我wifi的人 ... 靠近路由器h键在哪 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网