пятница, марта 27, 2015

NAT and DHCP

LAN

Configure VLANs on Switch0. Server2 in VLAN 255. PC1 - VLAN 7, PC0 - VLAN 34.
For non switch interconnect ports (all ports on Switch0) configure spanning-tree portfast for quick STP port forwarding on these ports.
DHCP


Configure 2 DHCP pools for VLAN 7 and VLAN 34 with ip addresses 192.168.7.10-192.168.7.250/24 and 192.168.34.10-192.168.34.250/24 with default router address of router GW and dns-server 8.8.8.8. Name of pools VLAN7 and VLAN34. Exclude from DHCP pools adresses of router LAN interfaces.

For network 192.168.255.0/24 configure static addresses in VLAN 255. For such hosts as servers ip addresses should be configured only in static manner.

Check, that hosts get ip addresses by DHCP. You can use hosts in VLANs 7 and 34 or show ip dhcp binding on router for these checks.

Check connectivity between hosts in different VLANs and Server2.
NAT

On GW configure default static route on 77.0.0.1 as next hop. Also configure NAT-PT (inside with overload) to pool with name LAN: 77.0.0.2 - 77.0.0.6 for natting for private addresses 192.168.0.0 (configure ACL for this: access list 10 permit 192.168.0.0 0.0.0.255). Serial link will be outside interface, subinterfaces with VLANs - inside links.

Check NAT with opening Web-page ya.ru on PC1 and PC0. If all is working internet has you. If not - check natting with show ip nat translations.

In NAT make static port forwarding to Server2: forward 77.0.0.2:80 -> 192.168.255.253:80. Check NAT forwarding from Inet-user laptop by entering in laptop browser address 77.0.0.2. Also check wireless connectivity between Laptop and access point.



Комментариев нет: