0
点赞
收藏
分享

微信扫一扫

链路聚合MSTP OSPF学习笔记

玉字璧 08-14 09:00 阅读 34

MSTP

SW3 SW4链路聚合:

inte eth-trunk 1

port link-type trunk

port trunk allow-pass vlan 10 20

mode lacp-static  静态LACP

trunkport g0/0/2 g0/0/4 加入端口

disp eth-trunk 1 查看聚合链路selected 活动 非活动 unselected


inte eth-trunk 1

port link-type trunk

port trunk allow-pass vlan 10 20

mode lacp-static

trunkport g0/0/3 g0/0/4


上联口配置:

VLAN 10 20 41

port link-type access

port default vlan 31

port link-type access

port default vlan 41


SW3 SW4创建VLAN接口:vlanif

inte vlanif 10

ip addr 192.168.10.252 24

inte vlanif 20

ip addr 192.168.20.252 24


inte vlanif 10

ip addr 192.168.10.253 24

inte vlanif 20

ip addr 192.168.20.253 24


inte vlanif 31

ip addr 192.168.31.3 24

inte vlanif 20

ip addr 192.168.41.3 24


VRRP  将2台交换机 路由器虚拟成一台设备 路由器

按VLAN设置负载分担:

sw3

inte vlanif 10

vrrp vrid 1 virtual-ip 192.168.10.254 虚拟IP

vrrp vrid 1 prioority 120  主设备默认100

vrrp vrid 1 preempt-mode timer delay 20 抢占延时模式时间20s  50s


sw4

inte vlanif 20

vrrp vrid 1 virtual-ip 192.168.20.254 虚拟IP

备用设备默认100

vrrp vrid 1 preempt-mode timer delay 20 抢占延时模式时间20s  50s


路由器:


dhcp enable

ip pool dhcppool  创建地址池

dns-list 8.8.8.8

network 192.168.1.0 mask 24

gateway-list 192.168.1.254

excluded-ip-address 192.168.1.250 192.168.1.253

lease day 2

disp this 查看地址池

inte g0/0/0

dhcp select globale  在这个接口上启用全局地址池

ip route-static 192.168.1.0 192.168.2.1 设置返程路由,子网多个网段配多个近程路由


接入交换机中继:

dhcp enable

inte vlanif 10

dhcp select relay 启用中继

dhcp relay server-ip 192.168.2.2  服务器地址


inte vlanif 20

dhcp select relay

dhcp relay server-ip 192.168.2.2



单臂路由:

dhcp enable

inte g0/0/0.10

ip addr 192.168.10.254 24

inte g0/0/0.20

ip addr 192.168.20.254 24


dhcp enable

ip pool pool10

dns-list 10.10.10.10

network 192.168.10.0 mask 24

gateway-list 192.168.10.254

lease day 2

dhcp select gloable

dot1q termination vid 10  取消VLAN10标签

arp broadcast enable 启用广播功能


ip pool pool20

dns-list 20.20.20.20

network 192.168.20.0 mask 24

gateway-list 192.168.20.254

lease day 2

dhcp select gloable

dot1q termination vid 20  取消VLAN20标签

arp broadcast enable 启用广播功能


sw: inte g0/0/3

port trunk all

port trunk allow-pass vlan 10 20



路由器的SNMP调试

snmp-agent sys-info version v2c

snmp-agent sys-info contact Mr.liu tel:13888888888

snmp-agent sys-info location liu ser

snmp-agent community read admread

snmp-agent community write admwrite

snmp-agent trap enable

snmp-agent target-host address udp-domain 10.0.0.1 params securityname MSR36 v2c


OSPF:

AR2

inte loopback 0

ip address 2.2.2.2 32  做route ID

ospf 1 router-id 2.2.2.2

area 0

network 10.0.1.2 0.0.0.0 精准接口加入OSPF

area 2

network 10.1.1.2 0.0.0.0


AR3

inte loopback 0

ip address 3.3.3.3 32

ospf 1 router-id 3.3.3.3

area 1

network 10.1.1.3 0.0.0.0

状态:init 2way exstart excheng loading full 邻居关系建立


AR1

inte loopback 0

ip address 10.10.10.10 32


inte loopback 1

ip address 1.1.1.1 32

ospf 1 router-id 1.1.1.1

area 0

network 10.0.1.1 0.0.0.0

network 10.10.10.10 0.0.0.0

disp ip routing-table 查看路由


AR2配置返程路由:

ip route-static 192.168.10.0 24 192.168.4.1

ip route-static 192.168.20.0 24 192.168.4.1

ip route-static 192.168.30.0 24 192.168.4.1

在OSPF中重发布静态路由

ospf 1

import-route static


























举报

相关推荐

0 条评论