Ejercicio IP (starfox) Modalidad A
Host H1
eth0: 192.168.1.5/24
Net ID
|
Máscara
|
Acción
|
192.168.1.0 |
FF.FF.FF.0
|
Directo por eth0
|
Default
|
|
Reenvio por 192.168.1.1
|
ifconfig eth0 172.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
route add default gw 192.168.1.1
Host H2
eth0: 192.168.2.5/24
Net ID
|
Máscara
|
Acción
|
192.168.2.0
|
FF.FF.FF.0
|
Directo por eth0
|
Default
|
|
Reenvio por 192.168.2.1
|
ifconfig eth0 172.168.2.5 netmask 255.255.255.0 broadcast 192.168.1.255
route add default gw 192.168.2.1
Router R1
eth0: 192.168.1.1/24
fr0: 10.0.0.1 p2p 10.0.0.2
Net ID
|
Máscara
|
Acción
|
192.168.1.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.2
|
FF.FF.FF.FF
|
Directo por fr0
|
192.168.2.0 |
FF.FF.FF.0
|
Reenvio por 10.0.0.2
|
Defecto
|
|
Reenvio por 192.168.1.2
|
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
ifconfig fr0 10.0.0.1 pointtopoint 10.0.0.2
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.2 dev fr0
route add -net 192.168.2.0 netmask 255.255.255.0 gw 10.0.0.2
route add default gw 192.168.1.2
R2
eth0: 192.168.2.1/24
fr0: 10.0.0.2 p2p 10.0.0.1
Net ID
|
Máscara
|
Acción
|
192.168.2.0
|
FF.FF.FF.0
|
Directo por eth0
|
10.0.0.1
|
FF.FF.FF.FF
|
Directo por fr0
|
192.168.1.0
|
FF.FF.FF.0
|
Reenvio por 10.0.0.1
|
192.168.3.0 |
FF.FF.FF.0
|
Reenvio por 10.0.0.1
|
ifconfig eth0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
ifconfig fr0 10.0.0.2 pointtopoint 10.0.0.1
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0
route add -host 10.0.0.1 dev fr0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.0.0.2
route add -net 192.168.3.0 netmask 255.255.255.0 gw 10.0.0.2
eth0: 192.168.1.2/24
eth1: 192.168.3.1/24
Net ID
|
Máscara
|
Acción
|
192.168.1.0
|
FF.FF.FF.0
|
Directo por eth0
|
192.168.3.0
|
FF.FF.FF.0
|
Directo por eth1
|
192.168.2.0
|
FF.FF.FF.0
|
Reenvio por 192.168.1.1
|
Defecto
|
|
Reenvio por 192.168.3.2
|
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
ifconfig eth1 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add -net 192.168.3.0 netmask 255.255.255.0 dev eth1
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1
route add default gw 192.168.3.2
R4
eth0: 192.168.3.2/24 (e1)
wan0: 62.87.17.5 pointtopoint 62.87.17.1
Net ID
|
Máscara
|
Acción
|
192.168.3.0
|
FF.FF.FF.0
|
Directo por eth0
|
62.87.17.5
|
FF.FF.FF.FF
|
Directo por wan0
|
192.168.0.0
|
FF.FF.0.0
|
Reenvio por 192.168.3.1
|
Defecto
|
|
Reenvio por 62.87.17.1
|
ifconfig eth0 192.168.3.2 netmask 255.255.255.0 broadcast 192.168.3.255
ifconfig wan0 62.87.17.5 pointtopoint 62.87.17.1
route add -net 192.168.3.0 netmask 255.255.255.0 dev eth0
route add -host 62.87.17.1 dev wan0
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.3.1
route add default gw 62.87.17.1
Host H3 (PROXY)
eth0: 192.168.2.7/24
isdn0: 80.3.25.4 p2p 80.3.25.1
Net ID
|
Máscara
|
Acción
|
192.168.2.0
|
FF.FF.FF.0
|
Directo por eth0
|
192.168.0.0
|
FF.FF.0.0
|
Reenvio por 192-168.2.1
|
80.3.25.1
|
FF.FF.FF.FF
|
Directo por isdn0
|
Default
|
|
80.3.25.1
|
ifconfig eth0 192.168.2.7 netmask 255.255.255.0 broadcast 192.168.2.255
ifconfig isdn0 80.3.25.4 pointtopoint 80.3.25.1
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0
route add -host 80.3.25.1 dev fr0
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.2.1