思科5000初始配置的具体步骤

2012-11-09

    下面就5505的配置步骤作简单描述:
    1. Supervisor Engine Software 的配置:
    首先Supervisor Engine Module 需要一个in-band(sc0)接口的IP地址,这是一个可管理的地址,可以通过telnet、SNMP来管理5505。此外还有一个SLIP(sl0)接口,这个接口不常用,这里不作介绍。
    sc0缺省的IP地址是0.0.0.0,属于VLAN1。(VLAN1 是5505缺省的VLAN ,所有的端口都属于VLAN1。
    配置如下,例:
    Console> (enable)set interface sc0 ip_addr netmask
    Console> (enable) set interface sc0 vlan_num
    其次是缺省网关的设置:5505可以设置3个网关,其中两个是冗余网关
    例:Console> (enable) set ip route default gateway [primary]
    设置静态路由:例:Console> (enable) set ip route destination gateway
    [metric]
    2. 配置Fast EtherChannel:
    Fast EtherChannel 提供高达800Mbps的带宽,Fast EtherChannel是由两个或四个具有Fast EtherChannel功能的快速以太网端口组成的,这些Channel 的mode有on、off、auto、desirable四种模式。组成channel的端口应是连续的端口。配置如下:
    Console> (enable) set port channel mod_num/ports {on | off | auto |
    desirable}
    Console> (enable) show port channel
    3. STP配置:
    在5505上,STP缺省的配置是激活的,并且你只能enable或disable所有的VLANs,而不能针对某一个VLAN。通过对每个端口优先级的设置,可以实现相同链路的负载分担。常用命令如下:
    Console> (enable) set spantree enable [vlan]
    Console> (enable) set spantree portpri mod_num/port_num priority [vlans]
    Console> (enable) set spantree portvlanpri mod_num/port_num priority
    [vlans]
    Console> (enable)set spantree disable [vlan]
    Console> (enable) show spantree [mod_num/port_num]
    4. VTP(VLAN Trunk Protocol)配置:
    一个VTP域是由一些具有同一域名的交换机组成的,在配置VLAN应先决定在网络中是否使用VTP。一个VTP域管理第二层信息(即VLAN信息)如VLAN的增加、删除和重命名等,这些信息通过trunk link在域内广播。VTP有三种模式:Server、Client、Transparent,每台交换机只能有一种VTP模式。
    在Server模式中,你能在交换机上配置VALN的信息如增加、删除VLAN,VTP Server把这些信息通过trunk link 广播给域内其它交换机,以同步VLAN信息。交换机上VTP缺省的模式是Server。
    在Client模式中,交换机只能从VTP Server接收VLAN信息,不修改任何VLAN信息,你只能加入由VTP Server已经创建好的VALN。
    在Transparent模式中,交换机不参与VTP 域中的VLAN信息交换(即它不发送、也不接收VLAN信息),你可以在交换机上设置VALN的任何信息。在VTP VERSION2中交换机可以将它所收到的VTP广播从trunk link 上广播出去。VTP配置如下:
    Console> (enable) set vtp domain name
    Console> (enable) set vtp mode [server|Client|Transparent]
    Console> (enable) show vtp domain
    VTP Pruning:
    VTP Pruning 可以减少广播以达到增加带宽的目的。在网络中有许多广播包、多目广播包、还有非广播包,它们通过trunk link 连接广播到域内所有交换机上,占用大量的带宽。VTP Pruning可以有效的减少将这些包广播出去。VTP Pruning 在Supervisor Engine Software release 2.3和以后的版本中支持。
    5.配置VLAN:
    Console> (enable) set vlan vlan_num [name name]
    Console> (enable) show vlan vlan_num
    Console> (enable) set vlan vlan_num mod_num/port_num
    Console> (enable) show vlan vlan_num
    Console> (enable) show port [mod_num/port_num]
    6. 配置 VLAN Trunks on Fast Ethernet and Gigabit Ethernet Ports:
    VLAN Trunk 用于交换机间的互连,你可以在Fast Ethernet和Gigabit Ethernet Port或在 Fast or Gigabit EtherChannel bundle上设置Trunk,作为tr unk的端口用DTP(Dynamic Trunking Protocol)协议(也可以不用)来协商。
    VLAN Trunk有五种模式和两种种封装:
    五种模式为:on , off , desirable , auto , nonegotiate
    两种封装为:ISL,802.1Q
    另外,当Trunk 配置后,所有VLAN都被加入到此Trunk中,你可以增加或删除Trunk中的VALN,但是你不能删除缺省VLAN(即VLAN1)。
    配置如下:
    Console> (enable) set trunk mod_num/port_num {on |
    desirable | auto} {isl | dot1q | negotiate }
    Console> (enable) show trunk

    编辑推荐:

    100G系统中的关键技术

    企业如何正确选择第三层交换机

    如何节省网站速度开销 

分享到:
0
相关阅读
友情链接
© 2018 我考网 http://www.woexam.com 中国互联网举报中心 湘ICP备18023104号 京公网安备 11010802020116号
违法和不良信息举报:9447029@qq.com