一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Cisco三層交換機(jī)與Routeros OSPF+DHCP配置實(shí)例

 昵稱(chēng)3228748 2010-12-09

Cisco三層交換機(jī)與Routeros OSPF+DHCP配置實(shí)例

本文詳細(xì)介紹Cisco三層交換機(jī)與Routeros OSPF+DHCP配置實(shí)例

  本案例使用Cisco三層交換機(jī)結(jié)合Mikrotik Routeros配置OSPF動(dòng)態(tài)路由及多Vlan Dhcp服務(wù)器中繼配置。

  使用設(shè)備如下

  三層交換機(jī):Cisco 3550 EMI

  接入層交換機(jī):HUAWEI Quidway S2008

  Mikrotik RouterOs 3.13

  網(wǎng)絡(luò)拓?fù)淙缦拢?/p>

Cisco三層交換機(jī)與Routeros OSPF+DHCP配置實(shí)例

  配置目的:驗(yàn)證Routeros OSPF動(dòng)態(tài)路由及DHCP中繼

   CISCO 3550
  ip routing
  #開(kāi)啟路由功能#
  ip dhcp excluded-address 10.100.0.100
  #設(shè)置dhcp服務(wù)器ip地址#
  interface FastEthernet0/2
  switchport trunk encapsulation dot1q
  switchport mode trunk
  #設(shè)置與2層交換機(jī)互聯(lián)的trunk端口#
  interface FastEthernet0/23
  switchport access vlan 2
  switchport mode access
  spanning-tree portfast
  #設(shè)置與ros連接的端口的vlan#
  interface Vlan2
  description server
  ip address 10.100.0.1 255.255.255.0
  #設(shè)置3層交換機(jī)vlan接口ip#
  !
  interface Vlan3
  description office
  ip address 10.100.3.1 255.255.255.0
  ip helper-address 10.100.0.100
  !
  #設(shè)置3層交換機(jī)vlan接口ip及配置dhcp中繼#
  interface Vlan4
  description sales
  ip address 10.100.4.1 255.255.255.0
  ip helper-address 10.100.0.100
  !
  #設(shè)置3層交換機(jī)vlan接口ip及配置dhcp中繼#
  interface Vlan5
  description users
  ip address 10.100.5.1 255.255.255.0
  ip helper-address 10.100.0.100
  !
  #設(shè)置3層交換機(jī)vlan接口ip及配置dhcp中繼#
  router ospf 10
  router-id 10.100.0.1
  log-adjacency-changes
  network 10.100.0.0 0.0.255.255 area 10.100.0.0
  #配置ospf進(jìn)程及area信息#
  HUAWEI Quidway S2008 配置:
  interface Ethernet0/6
  switchport access vlan 5
  !
  #配置用戶端口#
  interface Ethernet0/7
  switchport access vlan 3
  !
  #配置用戶端口#
  interface Ethernet0/8
  switchport access vlan 4
  #配置用戶端口#
  interface Ethernet0/9
  switchport mode trunk
  switchport trunk allowed vlan all
  !
  #設(shè)置與3層交換機(jī)互聯(lián)的trunk端口#
  Mikrotik Routeros:
  /ip pool
  add name="vlan3" ranges=10.100.3.2-10.100.3.254
  add name="vlan4" ranges=10.100.4.2-10.100.4.254
  add name="vlan5" ranges=10.100.5.2-10.100.5.254
  #設(shè)置不同Vlan的地址池#
  /ip dhcp-server
  add address-pool=vlan3 authoritative=after-2sec-delay bootp-support=static
    disabled=no interface=in lease-time=3d name="vlan3" relay=10.100.3.1
  add address-pool=vlan4 authoritative=after-2sec-delay bootp-support=static
    disabled=no interface=in lease-time=3d name="vlan4" relay=10.100.4.1
  add address-pool=vlan5 authoritative=after-2sec-delay bootp-support=static
    disabled=no interface=in lease-time=3d name="vlan5" relay=10.100.5.1
  #設(shè)置Dhcp-server 使之支持Dhcp中繼#
  /routing ospf area
  add area-id=0.0.0.0 authentication=none disabled=no name="backbone"
    type=default
  add area-id=10.100.0.0 authentication=none disabled=no name="area1"
    type=default
  #配置ospf area#
  /ip address
  add address=10.100.0.100/24 broadcast=10.100.0.255 comment="" disabled=no
    interface=in network=10.100.0.0
  #配置內(nèi)部IP地址#
  /ip dns
  set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB
    max-udp-packet-size=512 primary-dns=192.168.100.208
  #配置dns#
  /ip firewall nat
  add action=masquerade chain=srcnat comment="" disabled=no
    src-address=10.100.0.0/16
  #配置NAT#
  /routing ospf
  set distribute-default=always-as-type-2 metric-bgp=20 metric-connected=20
    metric-default=1 metric-rip=20 metric-static=20 mpls-te-area=unspecified
    mpls-te-router-id=unspecified redistribute-bgp=no
    redistribute-connected=no redistribute-rip=no redistribute-static=no
    router-id=10.100.100.2
  /routing ospf interface
  add authentication=none authentication-key="" cost=10 dead-interval=40s
    disabled=no hello-interval=10s interface=in network-type=broadcast
    passive=no priority=1 retransmit-interval=5s transmit-delay=1s
  /routing ospf network
  add area=area1 disabled=no network=10.100.0.0/16
  #配置OSPF路由協(xié)議#
cisco3550#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, su - IS-IS summary, 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 - periodic downloaded static route
Gateway of last resort is 10.100.0.100 to network 0.0.0.0
  10.0.0.0/24 is subnetted, 4 subnets
C    10.100.4.0 is directly connected, Vlan4
C    10.100.5.0 is directly connected, Vlan5
C    10.100.3.0 is directly connected, Vlan3
C    10.100.0.0 is directly connected, Vlan2
O*E2 0.0.0.0/0 [110/1] via 10.100.0.100, 01:09:52, Vlan2
admin@MikroTik] /ip route> print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
#   DST-ADDRESS    PREF-SRC    GATEWAY-STATE GATEWAY                           DISTANCE INTERFACE                    
0 ADS 0.0.0.0/0                reachable  192.168.18.1                        0    out                        
1 ADC 10.100.0.0/24   10.100.0.100                                            0    in                        
2 ADo 10.100.3.0/24              reachable  10.100.0.1                         110   in                        
3 ADo 10.100.4.0/24              reachable  10.100.0.1                         110   in                        
4 ADo 10.100.5.0/24              reachable  10.100.0.1                         110   in                        
5 ADC 192.168.18.0/24  192.168.18.158                                          0    out

責(zé)編:豆豆技術(shù)應(yīng)用

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

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類(lèi)似文章 更多

    永久福利盒子日韩日韩| 老富婆找帅哥按摩抠逼视频| 精品国产品国语在线不卡| 中文文精品字幕一区二区| 中文字幕一区久久综合| 亚洲精品中文字幕一二三| 免费播放一区二区三区四区 | 欧美日韩中国性生活视频| 麻豆91成人国产在线观看| 欧美尤物在线视频91| 国产精品一区欧美二区| 麻豆视频传媒入口在线看| 国产精品午夜小视频观看| 91免费精品国自产拍偷拍| 国产又大又黄又粗的黄色| 亚洲清纯一区二区三区| 东京干男人都知道的天堂| 国产一级特黄在线观看| 成年女人下边潮喷毛片免费| 国产在线观看不卡一区二区| 国产精品夜色一区二区三区不卡| 亚洲永久一区二区三区在线| 亚洲国产成人久久一区二区三区| 91爽人人爽人人插人人爽| 激情亚洲一区国产精品久久| 国产原创激情一区二区三区| 日本熟妇熟女久久综合| 少妇毛片一区二区三区| 91播色在线免费播放| 国产又粗又猛又爽又黄的文字| 国产三级欧美三级日韩三级| 无套内射美女视频免费在线观看| 伊人色综合久久伊人婷婷| 久久re6热在线视频| 激情五月综五月综合网| 欧美区一区二在线播放| 中文字幕精品一区二区年下载| 精品丝袜一区二区三区性色| 经典欧美熟女激情综合网| 亚洲国产av国产av| 亚洲天堂男人在线观看|