6509为主网络配置实例

http://tech.ddvip.com   2007年01月23日    社区交流 收藏本文

本文详细介绍6509为主网络配置实例

  zsr-sw-01(config)#enable secret test

  zsr-sw-01(config)#banner motd % Welcome to the C3548 in the Zhong San Lu ban Gong Lou %

  zsr-sw-01(config)#line vty 0 4

  zsr-sw-01(config.line)#login

  zsr-sw-01(config.line)#password test

  zsr-sw-01(config.line)#exit

  zsr-sw-01(config)#int vlan 1

  zsr-sw-01(config-if)#ip address 10.234.180.25 255.255.255.0

  zsr-sw-01(config-if)#exit

  zsr-sw-01(config)#ip default.gateway 10.234.180.234

  zsr-sw-01(config)#end

  zsr-sw-01#vlan database

  zsr-sw-01(vlan)#vtp domain Corp_Net

  zsr-sw-01(vlan)#vtp client

  zsr-sw-01(vlan)#exit

  zsr-sw-1#configure terminal

  zsr-sw-1(config)#int f0/1

  zsr-sw-1(config-if)#switchport mode access

  zsr-sw-1(config-if)#switchport access vlan 31

  zsr-sw-1(config-if)#exit

  zsr-sw-1(config)#int f0/2

  。。。。。。

  zsr-sw-1(config)#int f0/48

  zsr-sw-1(config-if)#switchport mode access

  zsr-sw-1(config-if)#switchport access vlan 31

  zsr-sw-1(config-if)#exit

  zsr-sw-01(config)#int g0/1

  zsr-sw-01(config-if)#switchport mode trunk

  zsr-sw-01(config-if)#switchport trunk encapsulation dot1q

  zsr-sw-01(config-if)#switchport trunk allowed vlan all

  zsr-sw-01 (config-if)#spantree cost 10

  zsr-sw-01(config-if)#exit

  zsr-sw-01(config)#int g0/2

  zsr-sw-01(config-if)#switchport mode trunk

责编:豆豆技术应用

正在加载评论...