Ejercicio de IP de Clase: 1-6-2004 (starfox)
Host A
eth0: 172.16.1.1/24
fr0:10.0.0.1 ptp 10.0.0.2
Net ID
|
Máscara
|
Acción
|
172.16.1.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.2
|
FF.FF.FF.FF
|
Directo por fr0
|
172.16.2.1
|
FF.FF.FF.FF |
Reenvio por 10.0.0.2
|
Default
|
|
Reenvio por 172.16.1.2
|
ifconfig eth0 172.16.1.1 netmask 255.255.255.0 broadcast 172.16.1.255
ifconfig fr0 10.0.0.1 pointtopoint 10.0.0.2
route add -net 172.16.1.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.2 dev fr0
route add default gw 172.16.1.2
Host B
eth0: 172.16.2.1/24
fr0:10.0.0.2 ptp 10.0.0.1
Net ID
|
Máscara
|
Acción
|
172.16.2.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.1.1
|
FF.FF.FF.FF
|
Directo por fr0
|
172.16.1.1
|
FF.FF.FF.FF |
Reenvio por 10.0.0.1
|
Default
|
|
Reenvio por 172.168.2.2
|
ifconfig eth0 172.16.2.1 netmask 255.255.255.0 broadcast 172.16.1.255
ifconfig fr0 10.0.0.2 pointtopoint 10.0.0.1
route add -net 172.16.2.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.1 dev fr0
route add default gw 172.16.2.2
R1
eth0: 172.16.1.2/24
fr0: 10.0.0.1 ptp 10.0.0.3
fr1: 10.0.0.2 ptp 10.0.0.5
Net ID
|
Máscara
|
Acción
|
172.16.1.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.3
|
FF.FF.FF.FF
|
Directo por fr0
|
10.0.0.5
|
FF.FF.FF.FF
|
Directo por fr1 |
172.16.3.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.5
|
172.16.2.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.3
|
ifconfig eth0 172.16.1.2 netmask 255.255.255.0 broadcast 172.16.1.255
ifconfig fr0 10.0.0.1 pointtopoint 10.0.0.3
ifconfig fr1 10.0.0.2 pointtopoint 10.0.0.5
route add -net 172.16.1.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.3 dev fr0
route add -host 10.0.0.5 dev fr1
route add -net 172.16.2.0 netmask 255.255.255.0 gw 10.0.0.3
route add -net 172.16.3.0 netmask 255.255.255.0 gw 10.0.0.5
R2
eth0: 172.16.2.2/24
fr0: 10.0.0.3 ptp 10.0.0.1
fr1: 10.0.0.4 ptp 10.0.0.6
Net ID
|
Máscara
|
Acción
|
172.16.2.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.1
|
FF.FF.FF.FF
|
Directo por fr0
|
10.0.0.6
|
FF.FF.FF.FF
|
Directo por fr1 |
172.16.1.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.1
|
172.16.3.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.6
|
ifconfig eth0 172.16.2.2 netmask 255.255.255.0 broadcast 172.16.2.255
ifconfig fr0 10.0.0.3 pointtopoint 10.0.0.1
ifconfig fr1 10.0.0.4 pointtopoint 10.0.0.6
route add -net 172.16.2.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.1 dev fr0
route add -host 10.0.0.6 dev fr1
route add -net 172.16.1.0 netmask 255.255.255.0 gw 10.0.0.1
route add -net 172.16.3.0 netmask 255.255.255.0 gw 10.0.0.6
R3
eth0: 172.16.3.2/24
fr0: 10.0.0.6 ptp 10.0.0.4
fr1: 10.0.0.5 ptp 10.0.0.2
Net ID
|
Máscara
|
Acción
|
172.16.3.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.4
|
FF.FF.FF.FF
|
Directo por fr0
|
10.0.0.2
|
FF.FF.FF.FF
|
Directo por fr1 |
172.16.1.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.2
|
172.16.2.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.4
|
ifconfig eth0 172.16.3.2 netmask 255.255.255.0 broadcast 172.16.3.255
ifconfig fr0 10.0.0.6 pointtopoint 10.0.0.4
ifconfig fr1 10.0.0.5 pointtopoint 10.0.0.2
route add -net 172.16.3.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.4 dev fr0
route add -host 10.0.0.2 dev fr1
route add -net 172.16.2.0 netmask 255.255.255.0 gw 10.0.0.4
route add -net 172.16.1.0 netmask 255.255.255.0 gw 10.0.0.2
Host H (PROXY)
eth0: 172.16.3.1/24
fr0: 10.0.0.1 ptp 10.0.0.2
Net ID
|
Máscara
|
Acción
|
172.16.3.0
|
FF.FF.FF.0
|
Directo por eth0
|
172.16.0.0
|
FF.FF.0.0
|
Reenvio por 172.168.3.2
|
10.0.0.2
|
FF.FF.FF.FF
|
Directo por fr0
|
Default
|
|
Reenvio por 10.0.0.2
|
ifconfig eth0 172.16.3.1 netmask 255.255.255.0 broadcast 172.16.1.255
ifconfig fr0 10.0.0.1 pointtopoint 10.0.0.2
route add -net 172.16.3.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.2 dev fr0
route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.168.3.2