Example: barber

Lab3 – 使用三层交换机组网 - zjucomp.net

Lab4 . Dr. Xiqun Lu College of Computer Science Zhejiang University .. NAT .. IP .. GNS3 (I). 1) . GNS3. IOS pdf .. 2) . VMWare ( . ) .. 3) VMWare .. GNS3 . GNS3. VMWare .. Windows . GNS3 VM for VMware workstation . GNS3 . Windows .. GNS3 (II). GNS3 . 1) VMware . VMWare .. ( . GNS3..ova . GNS3 . IOS .. GNS3 (III).. GNS3 . IOS .. GNS3 (IV). GNS3 . PC Cloud . GNS3 VM GNS3 VM . PC IP . PC start Console . PC-2> ip ( ) save . PC-1 PC-2 ping . PC IP . IP PC-1> ip /16 : . 255 x y (1~254) .. IP PC-1>save PC IP PC-1>show ip PC . PC ping PC . IP . IP .. PC 1 ip ( IP ). IP . ip address 1 fa0/0 fa1/0 IP. IP Zone 1 Zone 2 .. PC1: ip PC3: ip IP 1 fa0/0 IP . 1 fa1/0 . IP . PC PC ping .. Lab4 . NAT Network Address Translation [5]. IP addresses are scarce. 1) One solution is to dynamically assign an IP address to a compute when it is on and using the network, and to take the IP address back when it becomes inactive DHCP. 2) NAT box (Network Address Translation box) connects an internal network to an external network Many internal hosts are connected using few external IP addresses.

这里的意图是找到一个真实网络环境,如实验室无线WiFi。 可以用本机的命令窗口“ cmd ”输入“ ipconfig ”命令就能得到本机所连所有网络的详细信息。

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Lab3 – 使用三层交换机组网 - zjucomp.net

1 Lab4 . Dr. Xiqun Lu College of Computer Science Zhejiang University .. NAT .. IP .. GNS3 (I). 1) . GNS3. IOS pdf .. 2) . VMWare ( . ) .. 3) VMWare .. GNS3 . GNS3. VMWare .. Windows . GNS3 VM for VMware workstation . GNS3 . Windows .. GNS3 (II). GNS3 . 1) VMware . VMWare .. ( . GNS3..ova . GNS3 . IOS .. GNS3 (III).. GNS3 . IOS .. GNS3 (IV). GNS3 . PC Cloud . GNS3 VM GNS3 VM . PC IP . PC start Console . PC-2> ip ( ) save . PC-1 PC-2 ping . PC IP . IP PC-1> ip /16 : . 255 x y (1~254) .. IP PC-1>save PC IP PC-1>show ip PC . PC ping PC . IP . IP .. PC 1 ip ( IP ). IP . ip address 1 fa0/0 fa1/0 IP. IP Zone 1 Zone 2 .. PC1: ip PC3: ip IP 1 fa0/0 IP . 1 fa1/0 . IP . PC PC ping .. Lab4 . NAT Network Address Translation [5]. IP addresses are scarce. 1) One solution is to dynamically assign an IP address to a compute when it is on and using the network, and to take the IP address back when it becomes inactive DHCP. 2) NAT box (Network Address Translation box) connects an internal network to an external network Many internal hosts are connected using few external IP addresses.

2 The NAT box is often combined in a single device with a firewall, which provides security by carefully controlling what goes into the customer network and what comes out of it. RFC 2663; RFC 3022. DHCP . R4 fa0/0 IP : R4#config t R4(config)#interface fa0/0. R4(config-if)#ip address R4(config-if)#no shutdown DHCP . R4#config t R4(config)#ip dhcp pool 1. R4(dhcp-config)#network /24 . R4(dhcp-config)#default-router DHCP service dhcp PC ip dhcp IP . DHCP Example PC4 dhcp . DHCP . Lab4 PC4 PC5 ip dhcp IP . IP . Lab4 15 . R4 R2 IP . PPP encapsulation ppp PPP CHAP. ppp authentication chap . username R4 password 1234 . hostname . R2 R2 R4 s0/1 LCP . LCP Listen R4 LCP LCP Open . LCP Open PPP LCP . Lab4 18 . Destination host unreachable icmp ip . IP IP . ICMP . 1 . R1 . R1 fa0/1 . s0/2 . R2 . R2 s0/2 s0/1 . R4 . (I). R1, R3 R4 .. R1 s0/1 .. fa0/1 .. fa0/0 ; . fa1/0 . (II). Zone1, Zone2 Guest zone PC ping .. R1 . R1#config t R1(config)#ip route.

3 R1(config)#ip route R1(config)#exit R3 ( R3 R1 R4 . ) . R3#config t R3(config)#ip route R3(config)#ip route R3(config)#ip route R3(config)#ip route R3(config)#exit R4 . (III). S .. Lab4 22 . R1 f1/0 ( PC3) s2/0 ( R2) IP . R4 s0/1 ( R2) . R1 . R1(config)#ip route R1#ping source ping . R1#ping . R1 ip route R4 .. R4(config)#ip route R1 R4 . Lab4 22 R1 . Lab4 22 R4 . How NAT works [8]. The NAT translation table includes port numbers as well as IP. addresses in the table entries. The NAT router can behave to the outside world as a single device with a single IP address. How NAT works (II). Example Internal IP : Port External IP : Port : 5544 : 3344. : 1234 : 3345. : 1234 : 3346. Private IP addresses Public IP address Ports are effectively an extra 16 bits of addressing that identify which process gets which incoming packet. Ports 0-1023 are reserved for well-known services Port 80 is the port used by Web servers 25 NAT.

4 25 R5 NAT fa0/1 . fa0/0 .. fa0/1 fa0/0 .. PC6 PC7 ping 3 fa0/0. ping PC . 5 ctrl+shift+6+6 . show ip nat translation . 25 NAT . R5 NAT . port number . Lab4 27 . 2022 11 11 R2 fa0/0 IP .. R2#config t R2(config)#interface fa0/0. R2(config-if)#ip address dhcp R2(config-if)#no shutdown R2(config-if)#exit R2(config)#exit Lab4 28 . R2 fa0/0 IP IP .. PC save write 29 . WiFi . cmd ipconfig . 304 ZJU-YQ . ipconfig IPv4 . ( ) .. Ping H . windows . ping .. References [1] ( Linux ). [2] (VMWare ). [3] (GNS3). [4]. urce=copy_link&bbid=XYD1D74D22C7285F613F B9AD6A6D7F7341B01&ts=16. 06547560313 ( Lab4 ).