![](https://i-blog.csdnimg.cn/blog_migrate/50582a2c627e063d876e8cfcb078a378.png)
interface FastEthernet0/0
ip address 10.200.8.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 182.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet1/0.2
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
ip access-group 10 out
!
interface FastEthernet1/0.3
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
ip access-group 10 out
!
interface FastEthernet1/0.4
encapsulation dot1Q 4
ip address 192.168.4.1 255.255.255.0
ip access-group 10 out
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
!
!
access-list 10 deny 192.168.2.0 0.0.0.255
access-list 10 deny 192.168.3.0 0.0.0.255
access-list 10 deny 192.168.4.0 0.0.0.255
access-list 10 permit any
!
interface FastEthernet1/0
ip address 182.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet1/0.2
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
ip access-group 10 out
!
interface FastEthernet1/0.3
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
ip access-group 10 out
!
interface FastEthernet1/0.4
encapsulation dot1Q 4
ip address 192.168.4.1 255.255.255.0
ip access-group 10 out
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
!
!
access-list 10 deny 192.168.2.0 0.0.0.255
access-list 10 deny 192.168.3.0 0.0.0.255
access-list 10 deny 192.168.4.0 0.0.0.255
access-list 10 permit any
转载于:https://blog.51cto.com/51zcf/342200