NAT-ի դրական կողմերի մասին չեմ ուզում թվարկեմ, ուզում եմ ընդամենը Cisco 1811-ի օրինակով ցույց տամ կարգավորումները:
Եվ այսպես, ունենալով արտաքին 15.15.15.0/24 ցանցը 15.15.15.2 IP-ով, իսկ ներքին IP-ների տիրույթ՝ 10.0.0.0/24 10.0.0.1 IP-ով երթուղղիչի վրա, կարգավորումները հետևյալն են.
interface FastEthernet0
ip address 15.15.15.2 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1
no ip address
duplex auto
speed auto
!
interface FastEthernet1.2
encapsulation dot1Q 2
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
no snmp trap link-status
!
interface FastEthernet2
switchport mode trunk
!
interface FastEthernet3
switchport access vlan 2
իսկ հիմա հենց այն հրամանները որոնք կատարում են NAT-ը
ip nat inside source list 100 interface FastEthernet0 overload
!
access-list 100 permit ip 10.0.0.0 0.0.0.255 any
Եվ այսպես, ունենալով արտաքին 15.15.15.0/24 ցանցը 15.15.15.2 IP-ով, իսկ ներքին IP-ների տիրույթ՝ 10.0.0.0/24 10.0.0.1 IP-ով երթուղղիչի վրա, կարգավորումները հետևյալն են.
interface FastEthernet0
ip address 15.15.15.2 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1
no ip address
duplex auto
speed auto
!
interface FastEthernet1.2
encapsulation dot1Q 2
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
no snmp trap link-status
!
interface FastEthernet2
switchport mode trunk
!
interface FastEthernet3
switchport access vlan 2
իսկ հիմա հենց այն հրամանները որոնք կատարում են NAT-ը
ip nat inside source list 100 interface FastEthernet0 overload
!
access-list 100 permit ip 10.0.0.0 0.0.0.255 any
No comments:
Post a Comment