中小型网络搭建配置实例

 

3560Switch#show running-config
Building configuration...

Current configuration : 2973 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
interface FastEthernet0/1
 no switchport
 ip address 10.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!

!
interface Vlan1
 no ip address
!
interface Vlan2
 ip address 192.168.20.1 255.255.255.0
 ip access-group yfzx in
!
interface Vlan3
 ip address 192.168.30.1 255.255.255.0
 ip access-group zbb in
!
interface Vlan4
 ip address 192.168.40.1 255.255.255.0
 ip access-group zzb in
!
interface Vlan5
 ip address 192.168.50.1 255.255.255.0
 ip access-group sbb in
!
interface Vlan6
 ip address 192.168.60.1 255.255.255.0
 ip access-group cgb in
!
interface Vlan7
 ip address 192.168.70.1 255.255.255.0
 ip access-group xcb in
!
interface Vlan8
 ip address 192.168.80.1 255.255.255.0
 ip access-group cwb in
!
interface Vlan9
 ip address 192.168.90.1 255.255.255.0
!
interface Vlan100
 ip address 192.168.100.1 255.255.255.0
!
router ospf 1
 log-adjacency-changes
 network 192.168.0.0 0.0.255.255 area 0
 network 10.1.1.0 0.0.0.255 area 0
!
ip classless
!
!
ip access-list extended yfzx
 permit ip any 192.168.30.0 0.0.0.255
 permit ip any 192.168.100.0 0.0.0.255
 permit ip any 10.1.1.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
 permit ip any any
ip access-list extended zbb
 permit ip any 192.168.20.0 0.0.0.255
 permit ip any 192.168.100.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
ip access-list extended zzb
 permit ip any 192.168.50.0 0.0.0.255
 permit ip any 192.168.100.0 0.0.0.255
 permit ip any 192.168.1.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
 permit ip any any
ip access-list extended sbb
 permit ip any 192.168.100.0 0.0.0.255
 permit ip any 192.168.40.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
ip access-list extended cgb
 permit ip any 192.168.100.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
ip access-list extended xsb
 permit ip any 192.168.100.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255
ip access-list extended cwb
 permit ip any 192.168.60.0 0.0.0.255
 permit ip any 192.168.70.0 0.0.0.255
 permit ip any 192.168.100.0 0.0.0.255
 deny ip any 192.168.0.0 0.0.255.255

本文出自 “网络技术论坛” 博客,转载请与作者联系!

你可能感兴趣的:(网络,职场,实例,休闲,中小型)