Chinaunix首页 | 论坛 | 博客
  • 博客访问: 947400
  • 博文数量: 276
  • 博客积分: 4182
  • 博客等级: 上校
  • 技术积分: 4486
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:14
文章分类

全部博文(276)

文章存档

2014年(9)

2013年(132)

2012年(135)

分类:

2012-06-27 14:29:08

 

标记:接入层交换机我们标记为sw1,做热备的两台交换机,左边的我们标记为sw2,右边的标记为sw3。

说明:我这里的连线方式和拓扑上的不一样,具体方式如下:
Switch1 F0/1 <----> Switch2 F0/1
Switch1 F0/2 <----> Switch3 F0/2
Switch2 F0/10 <----> Switch3 F0/10
Switch2 F0/2 <----> Switch4 F0/2
Switch3 F0/1 <----> Switch4 F0/1
Router1 F0/0 <----> Switch4 F0/0

router配置:

FastEthernet0/0
address 172.16.1.1 255.255.255.0
      
interface Serial1/0
ip address 10.250.34.51 255.255.255.0


ip route 0.0.0.0 0.0.0.0 Serial1/0 2
ip route 192.168.10.0 255.255.255.0 172.16.1.2
ip route 192.168.10.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.2

sw1配置:

interface FastEthernet0/1
port mode trunk
!      
interface FastEthernet0/2
switchport mode trunk

sw2配置:

interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
no switchport
ip address 172.16.1.2 255.255.255.0

interface FastEthernet0/10
switchport mode trunk
!
interface FastEthernet0/11
switchport mode trunk
!
interface FastEthernet0/12
switchport mode trunk
interface Vlan10
ip address 192.168.10.254 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 priority 200
standby 1 preempt
standby 1 track FastEthernet0/2 150
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 preempt
standby 2 track FastEthernet0/2

sw3配置:

interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
no switchport
ip address 172.16.1.3 255.255.255.0
!
interface FastEthernet0/2
switchport mode trunk
interface FastEthernet0/10
switchport mode trunk
interface FastEthernet0/11
switchport mode trunk
interface FastEthernet0/12
switchport mode trunk

interface Vlan10
ip address 192.168.10.253 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 preempt
standby 1 track FastEthernet0/1
!
interface Vlan20
ip address 192.168.20.253 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 priority 200
standby 2 preempt
standby 2 track FastEthernet0/1 150
mac-address-table static 0000.0c07.ac02 interface FastEthernet0/10 vlan 20

sw4我这里没有做任何配置,大家可以根据需要在上面作访问控制列表之类的配置

阅读(1096) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~