例:
interface Ethernet0.1
encapsulation dot1Q 10
description wan
ip address y.y.y.y 255.255.255.y
ip nat outside
no ip mroute-cache
!
interface Ethernet0.2
encapsulation dot1Q 20
description lan
ip address x.x.x.1 255.255.255.0
ip nat inside
no ip mroute-cache
!
ip nat pool internet y.y.y.y y.y.y.y netmask 255.255.255.y
ip nat inside source list 1 pool internet overload
ip classless
ip route 0.0.0.0 0.0.0.0 z.z.z.z
!
access-list 1 permit x.x.x.0 0.0.0.255