网络通信 频道

配置NetScreen 208+C3550 VLAN间路由

配置例子:
C3550#showrunning-config

Buildingconfiguration...

Currentconfiguration:4143bytes

!

version12.1

noservicepad

servicetimestampsdebuguptime

servicetimestampsloguptime

noservicepassword-encryption

!

hostnameC3550

!

ipsubnet-zero

iprouting

!

clusterenableaaa0

!

spanning-treeextendsystem-id

!

!

!

interfaceFastEthernet0/1

descriptionUpLinkFW

noswitchport

ipaddress192.168.0.1255.255.255.0

!

interfaceFastEthernet0/2

noipaddress

!

interfaceFastEthernet0/3

switchporttrunkencapsulationdot1q

switchportmodetrunk

noipaddress

!

interfaceFastEthernet0/4

noipaddress

!

interfaceFastEthernet0/5

noipaddress

!

interfaceFastEthernet0/6

noipaddress

!

interfaceFastEthernet0/7

noipaddress

!

interfaceFastEthernet0/8

noipaddress

!

interfaceFastEthernet0/9

switchportaccessvlan9

switchportmodeaccess

noipaddress

!

interfaceFastEthernet0/10

noipaddress

!

interfaceFastEthernet0/11

noipaddress

!

interfaceFastEthernet0/12

noipaddress

!

interfaceFastEthernet0/13

descriptionTestPort13

switchportaccessvlan9

noipaddress

!

interfaceFastEthernet0/14

descriptionTestPort14

switchporttrunkencapsulationdot1q

switchportmodetrunk

noipaddress

!

interfaceFastEthernet0/15

noipaddress

!

interfaceFastEthernet0/16

noipaddress

!

interfaceFastEthernet0/17

noipaddress

!

interfaceFastEthernet0/18

noipaddress

!

interfaceFastEthernet0/19

noipaddress

!

interfaceFastEthernet0/20

noipaddress

!

interfaceFastEthernet0/21

noipaddress

!

interfaceFastEthernet0/22

noipaddress

!

interfaceFastEthernet0/23

noipaddress

!

interfaceFastEthernet0/24

noipaddress

!

interfaceGigabitEthernet0/1

noipaddress

!

interfaceGigabitEthernet0/2

noipaddress

!

interfaceVlan1

ipaddress192.168.1.1255.255.255.0

noipmroute-cache

!

interfaceVlan2

ipaddress192.168.2.1255.255.255.0

!

interfaceVlan3

ipaddress192.168.3.1255.255.255.0

!

interfaceVlan4

ipaddress192.168.4.1255.255.255.0

!

interfaceVlan5

ipaddress192.168.5.1255.255.255.0

!

interfaceVlan6

ipaddress192.168.6.1255.255.255.0

!

interfaceVlan7

ipaddress192.168.7.1255.255.255.0

!

interfaceVlan8

ipaddress192.168.8.1255.255.255.0

!

interfaceVlan9

ipaddress192.168.9.1255.255.255.0

!

interfaceVlan10

ipaddress192.168.10.1255.255.255.0

!

interfaceVlan11

ipaddress192.168.11.1255.255.255.0

!

interfaceVlan12

ipaddress192.168.12.1255.255.255.0

!

interfaceVlan13

ipaddress192.168.13.1255.255.255.0

!

interfaceVlan14

ipaddress192.168.14.1255.255.255.0

!

interfaceVlan15

ipaddress192.168.15.1255.255.255.0

!

interfaceVlan16

ipaddress192.168.16.1255.255.255.0

!

interfaceVlan17

ipaddress192.168.17.1255.255.255.0

!

interfaceVlan18

ipaddress192.168.18.1255.255.255.0

!

interfaceVlan19

ipaddress192.168.19.1255.255.255.0

!

interfaceVlan20

ipaddress192.168.20.1255.255.255.0

!

interfaceVlan21

ipaddress192.168.21.1255.255.255.0

!

interfaceVlan22

ipaddress192.168.22.1255.255.255.0

!

interfaceVlan23

ipaddress192.168.23.1255.255.255.0

!

interfaceVlan24

ipaddress192.168.24.1255.255.255.0

!

routerrip

version2

network192.168.0.0

network192.168.1.0

network192.168.2.0

network192.168.3.0

network192.168.4.0

network192.168.5.0

network192.168.6.0

network192.168.7.0

network192.168.8.0

network192.168.9.0

network192.168.10.0

network192.168.11.0

network192.168.12.0

network192.168.13.0

network192.168.14.0

network192.168.15.0

network192.168.16.0

network192.168.17.0

network192.168.18.0

network192.168.19.0

network192.168.20.0

network192.168.21.0

network192.168.22.0

network192.168.23.0

network192.168.24.0

!

ipdefault-gateway192.168.1.252

ipclassless

iproute0.0.0.00.0.0.0192.168.1.252

iphttpserver

!

ipaccess-listextendedCMP-NAT-ACL

dynamicCluster-HSRPdenyipanyany

dynamicCluster-NATpermitipanyany

!

!

snmp-serverengineIDlocal800000090300000A8A9A5181

snmp-servercommunitypublicRO

snmp-servercommunitypublic@es0RO

!

end

文章转载地址:http://www.cnpaf.net/Class/VLAN/0532918532938170.html
0
相关文章