correction bug images defaut route
This commit is contained in:
@@ -94,19 +94,19 @@ Each router in the path needs two routes: a route to 192.168.1.0/24 and a route
|
|||||||
|
|
||||||
For configuring Static route the command is:
|
For configuring Static route the command is:
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R1(config)# ip route ip-address netmask next-hop
|
R1(config)# ip route ip-address netmask next-hop
|
||||||
```
|
```
|
||||||
|
|
||||||
so for R1:
|
so for R1:
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R1(config)# ip route 192.168.4.0 255.255.255.0 192.168.13.3
|
R1(config)# ip route 192.168.4.0 255.255.255.0 192.168.13.3
|
||||||
```
|
```
|
||||||
|
|
||||||
To check the routes
|
To check the routes
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R1(config)# do show ip route
|
R1(config)# do show ip route
|
||||||
|
|
||||||
Codes: L - local, C - connected, S - static ....
|
Codes: L - local, C - connected, S - static ....
|
||||||
@@ -125,7 +125,7 @@ S 192.168.4.0/24 [1/0] via 192.168.13.3
|
|||||||
|
|
||||||
so for R3:
|
so for R3:
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R3(config)# ip route 192.168.1.0 255.255.255.0 192.168.13.1
|
R3(config)# ip route 192.168.1.0 255.255.255.0 192.168.13.1
|
||||||
// to send packets to 192.168.1.0/ 24 send packets to R1
|
// to send packets to 192.168.1.0/ 24 send packets to R1
|
||||||
R3(config)# ip route 192.168.4.0 255.255.255.0 192.168.34.4
|
R3(config)# ip route 192.168.4.0 255.255.255.0 192.168.34.4
|
||||||
@@ -134,7 +134,7 @@ R3(config)# ip route 192.168.4.0 255.255.255.0 192.168.34.4
|
|||||||
|
|
||||||
so for R4:
|
so for R4:
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R4(config)# ip route 192.168.1.0 255.255.255.0 192.168.34.3
|
R4(config)# ip route 192.168.1.0 255.255.255.0 192.168.34.3
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -158,21 +158,21 @@ instead of the ip address we can specify the interface
|
|||||||
|
|
||||||
We will do this for R2:
|
We will do this for R2:
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R2(config)# ip route ip-address netmask exit-interface
|
R2(config)# ip route ip-address netmask exit-interface
|
||||||
R2(config)# ip route 192.168.1.0 255.255.255.0 g0/0
|
R2(config)# ip route 192.168.1.0 255.255.255.0 g0/0
|
||||||
```
|
```
|
||||||
|
|
||||||
but we can do both exit-interface and next-hop
|
but we can do both exit-interface and next-hop
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R2(config)# ip route ip-address netmask exit-interface next-hop
|
R2(config)# ip route ip-address netmask exit-interface next-hop
|
||||||
R2(config)# ip route 192.168.4.0 255.255.255.0 g0/1 192.168.24.4
|
R2(config)# ip route 192.168.4.0 255.255.255.0 g0/1 192.168.24.4
|
||||||
```
|
```
|
||||||
|
|
||||||
so it returns
|
so it returns
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
R2(config)# do show ip route
|
R2(config)# do show ip route
|
||||||
|
|
||||||
// exit interface
|
// exit interface
|
||||||
@@ -199,8 +199,7 @@ S 192.168.4.0/24 [1/0] via 192.168.24.4, GigabitEthernet0/1
|
|||||||
- More specific routes are used for destinations in the internal corporate network.
|
- More specific routes are used for destinations in the internal corporate network.
|
||||||
- Traffic to destinations outside of the internal network is sent to the internet.
|
- Traffic to destinations outside of the internal network is sent to the internet.
|
||||||
|
|
||||||
!(default route)[./Images/default_routes.png]
|

|
||||||
|
|
||||||
### configure default route
|
### configure default route
|
||||||
|
|
||||||
```Cisco
|
```Cisco
|
||||||
|
|||||||
Reference in New Issue
Block a user