1. ACL
2. DHCP
Mot Router co the tao nhieu Pool tuong ung voi nhieu dai dia chi cap IP
R(Config)#ip dhcp excluded-address 192.168.10.1 192.168.10.9
R(Config)#ip dhcp excluded-address 192.168.10.254
R(Config)#ip dhcp pool LAN-POOL-1
R(Config)#network 192.168.10.0 255.255.255.0
R(Config)#default-router 192.168.10.1
R(Config)#ip dhcp excluded-address 192.168.10.254
R(Config)#ip dhcp pool LAN-POOL-1
R(Config)#network 192.168.10.0 255.255.255.0
R(Config)#default-router 192.168.10.1
3. NAT
Cho phep cac di chi IP private ra ngoai duoc internet
NAT tĩnh:
Thuong dung cho cac server public
R2(config)#ip nat inside source static 192.168.10.10 209.165.200.226
R2(config)#ip nat outside source static 209.165.200.254 10.1.1.1
R2(config)#ip nat outside source static 209.165.200.254 10.2.2.1
R2(config)#interface f0/0
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#interface f0/1
R2(config-if)#ip nat outside
R2(config-if)#exit
R2(config)#ip nat inside source static 192.168.10.10 209.165.200.226
R2(config)#ip nat outside source static 209.165.200.254 10.1.1.1
R2(config)#ip nat outside source static 209.165.200.254 10.2.2.1
R2(config)#interface f0/0
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#interface f0/1
R2(config-if)#ip nat outside
R2(config-if)#exit
Nat dong:
- Interface
Chuc nang cua cac modem o nha, nhieu dia chi private voi nhieu interface
- Pool
Dung can bang tai cho cac server
Dung can bang tai cho cac server
0 comments:
Post a Comment