Thứ Ba, 19 tháng 11, 2024

Download GNS3 topology (LAP RIPV2)

Cấu Hình Mạng

Cấu Hình Mạng

Download here

1. Cấu hình IP trên các router

Trên R1:

R1> enable
R1# configure terminal
R1(config)# interface fastEthernet 0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface fastEthernet 0/1
R1(config-if)# ip address 192.168.2.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# exit
        

Trên R2:

R2> enable
R2# configure terminal
R2(config)# interface fastEthernet 0/0
R2(config-if)# ip address 192.168.3.1 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# interface fastEthernet 0/1
R2(config-if)# ip address 192.168.2.2 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit
R2(config)# exit
        

2. Cấu hình IP trên PC1 và PC2

Trên PC1:

PC1> ip 192.168.1.2 255.255.255.0 192.168.1.1
        

Trên PC2:

PC2> ip 192.168.3.2 255.255.255.0 192.168.3.1
        

3. Cấu hình RIP V2:

Router R1

router rip
version 2
network 192.168.1.0
network 192.168.2.0
no auto-summary
exit
        

Router R2

router rip
version 2
network 192.168.2.0
network 192.168.3.0
no auto-summary
exit
        

4. Kiểm tra kết nối

PC1> ping 192.168.1.1
84 bytes from 192.168.1.1 icmp_seq=1 ttl=255 time=15.834 ms
84 bytes from 192.168.1.1 icmp_seq=2 ttl=255 time=16.122 ms
84 bytes from 192.168.1.1 icmp_seq=3 ttl=255 time=16.006 ms
84 bytes from 192.168.1.1 icmp_seq=4 ttl=255 time=16.251 ms
84 bytes from 192.168.1.1 icmp_seq=5 ttl=255 time=16.140 ms

PC1> ping 192.168.2.1
84 bytes from 192.168.2.1 icmp_seq=1 ttl=255 time=15.720 ms
84 bytes from 192.168.2.1 icmp_seq=2 ttl=255 time=15.060 ms

PC1> ping 192.168.2.2
84 bytes from 192.168.2.2 icmp_seq=1 ttl=254 time=47.582 ms
84 bytes from 192.168.2.2 icmp_seq=2 ttl=254 time=46.501 ms

PC1> ping 192.168.3.1
84 bytes from 192.168.3.1 icmp_seq=1 ttl=254 time=46.490 ms
84 bytes from 192.168.3.1 icmp_seq=2 ttl=254 time=46.623 ms

PC1> ping 192.168.3.2
84 bytes from 192.168.3.2 icmp_seq=1 ttl=62 time=61.959 ms
84 bytes from 192.168.3.2 icmp_seq=2 ttl=62 time=62.312 ms

PC1> trace 192.168.3.2
trace to 192.168.3.2, 8 hops max, press Ctrl+C to stop
 1   192.168.1.1   15.583 ms  15.571 ms  16.003 ms
 2   192.168.2.2   45.456 ms  46.036 ms  47.307 ms
 3   *192.168.3.2   61.286 ms (ICMP type:3, code:3, Destination port unreachable)