网络集成设计测试

在这里插入图片描述在这里插入图片描述

  1. B2F1As1 int f0/1
    Switchport access vlan 21
    B2F1As2 int f0/1
    Switchport access vlan 22
  2. B2DS1 int range f0/23-24
    Channel-protocol lacp
    Channel-group 1 mode active
    Exit
    Int port-channel 1
    Switchport trunk encapsulation dotlq
    Switchport mode trunk
    B2DS2 int range f0/23-24
    Channel-protocol lacp
    Channel-group 1 mode active
    B2DS1 int range f0/1-2
    Switchport trunk encapsulation dotlq
    Switchport mode trunk
    B2DS2 int range f0/1-2
    Switchport trunk encapsulation dotlq
    Switchport mode trunk
    B2DS1 spanning-tree valn 21 root primary
    Spanning-tree vlan 22 root secondary
    B2DS2 spanning-tree vlan 22 root primary
    Spanning-tree vlan 21 root secondary
  3. B2DS1 ip routing
    Int vlan 21
    Ip address 172.16.21.253 255.255.255.0
    Int vlan 22
    Ip address 172.16.22.253 255.255.255.0
    Exit
    Int vlan 21
    Standby 21 ip 172.16.21.1
    Standby 21 priority 200
    Standby 21 preempt
    Int vlan 22
    Standby 22 ip 172.16.22.1
    Standby 22 priority 100
    B2DS2 ip routing
    Int vlan 21
    Ip address 172.16.21.254 255.255.255.0
    Int vlan 22
    Ip address 172.16.22.254 255.255.255.0
    Exit
    Int vlan 21
    Int vlan 21
    Standby 21 ip 172.16.21.1
    Standby 21 priority 100
    Int vlan 22
    Standby 22 ip 172.16.22.1
    Standby 22 priority 200
    Standby 22 preempt
  4. B2DS1 int f0/3
    No switchport
    Ip address 172.16.1.3 255.255.255.0
    Int f0/4
    no switchport
    ip address 172.16.2.3 255.255.255.0
    B2DS2 int f0/3
    No switchport
    Ip address 172.16.1.4 255.255.255.0
    Int f0/4
    No switchport
    Ip address 172.16.2.4 255.255.255.0
    R2 int f0/0
    Ip address 172.16.1.5 255.255.255.0
    Int f0/1
    Ip address 172.16.2.5 255.255.255.0
    R1 int f0/0
    Ip address 172.16.1.6 255.255.255.0
    Int f0/1
    Ip address 172.16.2.6 255.255.255.0
    S1AS1 int f0/1
    No switchport
    Ip address 172.16.1.7 255.255.255.0
    Int f0/2
    No switchport
    Ip address 172.16.2.7 255.255.255.0
    Vlan 100
    Int range f0/3-4
    Switchport access vlan 100
    Exit
    Ip routing
    Int vlan 100
    Ip address 172.16.100.1 255.255.255.0
  5. B2DS1 route ospf 1
    Network 172.16.0.0 0.0.255.255 area 0
    B2DS2 route ospf 1
    Network 172.16.0.0 0.0.255.255 area 0
    R2 route ospf 1
    Network 172.16.0.0 0.0.255.255 area 0
    Network 2.1.1.0 0.0.0.3 area 0
    R1 route ospf 1
    Network 1.1.1.0 0.0.0.7 area 0
    Network 172.16.0.0 0.0.255.255 area0
    S1AS1 route ospf 1
    Network 172.16.100.0 0.0.0.255 area 0
    Network 172.16.0.0 0.0.255.255 area 0
    ISP1-1 route ospf 1
    Network 1.1.1.0 0.0.0.7 area 0
    Network 3.0.0.0 0.255.255.255 area 0
    ISP2-1 route ospf 1
    Network 2.1.1.0 0.0.0.3 area 0
    Network 4.0.0.0 0.255.255.255 area 0
    ISP1-2 route ospf 1
    Network 3.0.0.0 0.255.255.255 area 0
    ISP2-2 route ospf 1
    Network 4.0.0.0 0.255.255.255 area 0
    Network 9.1.1.0 0.0.0.3 area 0
  6. ISP1-2 route bgp 100
    Neighbor 5.0.0.2 remote-as 300
    Exit
    Route bgp 100
    Redistribute ospf 1
    Exit
    Route ospf 1
    Network 5.0.0.0 0.255.255.255 area 0
    Redistribute bgp 100 subnets
    ISP3 route bgp 200
    Neighbor 6.0.0.2 remote-as 300
    Redistribute ospf 1
    Exit
    Route ospf 1
    Network 6.0.0.0 0.255.255.255 area 0
    Redistribute bgp 200 subnets
  7. R1 ip route 0.0.0.0 0.0.0.0 1.1.1.2
    Route ospf 1
    Default-information originate
    Exit
    Access-list 1 permit 172.16.0.0 0.0.255.255
    Ip nat inside source list 1 int f1/0 overload
    Int f1/0
    Ip nat outside
    Int range f0/0-1
    Ip nat inside
    R2 ip oute 0.0.0.0 0.0.0.0 2.1.1.2
    Route ospf 1
    Default-information originate
    Exit
    Access-list 1 permit 172.16.0.0 0.0.255.255
    Ip nat inside source list 1 int f1/0 overload
    Int f1/0
    Ip nat outside Int range f0/0-1
    Ip nat inside
    R1 exit
    Ip nat inside source static tcp 172.16.100.2 80 1.1.1.1 80
    R2 exit
    Ip nat inside source static tcp 172.16.100.2 80 2.1.1.1 80
  8. R3 ip route 0.0.0.0 0.0.0.0 9.1.1.1
    Access-list 1 permit 192.168.1.0 0.0.0.255
    Ip nat inside source list 1 int f1/0 overload
    Int f1/0
    Ip nat outside
    Int f0/0
    Ip nat inside
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_43694121

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值