Fix broken tutorial
This commit is contained in:
parent
726a0df936
commit
44e275b419
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
![](./network_connection.png)
|
![](./network_connection.png)
|
||||||
|
|
||||||
## Configuration Commands
|
## Router Configuration
|
||||||
|
|
||||||
- `XX`:
|
- `XX`:
|
||||||
Workplace number
|
Workplace number
|
||||||
|
|
||||||
|
@ -16,17 +15,29 @@ configure terminal
|
||||||
# Assign ip addresses
|
# Assign ip addresses
|
||||||
interface gi0/0
|
interface gi0/0
|
||||||
ip address 10.3.44.1XX 255.255.255.0
|
ip address 10.3.44.1XX 255.255.255.0
|
||||||
|
ip nat outside
|
||||||
|
no shutdown
|
||||||
|
|
||||||
interface gi0/1
|
interface gi0/1
|
||||||
ip address 192.168.1.1 255.255.255.0
|
ip address 192.168.1.254 255.255.255.0
|
||||||
|
ip nat outside
|
||||||
|
no shutdown
|
||||||
|
|
||||||
# Enable network address translation
|
# Enable network address translation
|
||||||
# ip nat pool <name> <start-ip> <end-ip> { netmask <netmask> | prefix-length <prefix-length> } [ type { rotary } ]
|
# ip nat pool <name> <start-ip> <end-ip> { netmask <netmask> | prefix-length <prefix-length> } [ type { rotary } ]
|
||||||
ip nat pool okayletsgo 10.3.44.1XX 10.3.44.1XX netmask 255.255.255.0
|
ip nat pool okayletsgo 10.3.44.1XX 10.3.44.1XX netmask 255.255.255.0
|
||||||
|
|
||||||
# access-list acln {deny|permit} {host|source source-wildcard|any}
|
# access-list acln {deny|permit} {host|source source-wildcard|any}
|
||||||
access-list 24 permit 192.168.1.0 255.255.255.0
|
access-list 24 permit 192.168.1.0 0.0.0.255
|
||||||
|
|
||||||
# ip nat inside source { list <acln> pool <name> [overload] | static <local-ip><global-ip> }
|
# ip nat inside source { list <acln> pool <name> [overload] | static <local-ip><global-ip> }
|
||||||
ip nat inside source list 24 pool okayletsgo overload
|
ip nat inside source list 24 pool okayletsgo overload
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Client Configuration
|
||||||
|
- `XX`: Computer Number
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ifconfig eth0 192.168.1.XX 255.255.255.0
|
||||||
|
route add default gw 192.168.1.254
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue