Jak na to
linux.cz confera
honza.linuxconf na atlas.cz
Čtvrtek Červen 21 19:33:08 CEST 2001
Dobrý den,
opet jeden problemek s rootem. Mam jeden router a sit ktera vypada
nejak takto (doufam):
+ nejaka interni sit
+-----------+ |
+----------+ | eth0 +--------+
| internet +------+ppp0 eth1 +-----------druha interni sit
+----------+ | eth2 +-----+ \ | /
+-----------+ | \|/ (zcom+mikr. ant)
+-------+
\ | /
\|/ +----+
+----+ PC |
+----+
fsecko funguje skvele ale potrebuji se z PC dostat pres router na
internet. Nastaveni na PC vypada takto:
IP:10.1.0.4 Maska:255.255.255.0 Gate:10.1.0.1
Ping na 10.1.0.1-OK 195.70.157.102(router v ceste)-OK
ven ale vubec nic. Ping na PC z routra je OK.
routovaci tabulka na routru vypada takto.
Destination Gateway Genmask Flags iface
192.168.1.1 0.0.0.0 255.255.255.255 UH eth1
195.70.145.131 10.2.0.2 255.255.255.255 UGH eth2
195.70.146.130 10.2.0.2 255.255.255.255 UGH eth2
10.2.0.2 0.0.0.0 255.255.255.255 UH eth2
10.1.0.1 0.0.0.0 255.255.255.255 UH eth2
213.210.133.201 0.0.0.0 255.255.255.255 UH ppp0
192.168.0.1 0.0.0.0 255.255.255.255 UH eth0
192.168.1.0 0.0.0.0 255.255.255.0 U eth1
10.2.2.0 10.2.0.2 255.255.255.0 UG eth2
192.168.0.0 0.0.0.0 255.255.255.0 U eth0
10.2.0.0 10.2.0.2 255.255.0.0 UG eth2
10.1.0.0 0.0.0.0 255.255.0.0 U eth2
10.0.0.0 0.0.0.0 255.0.0.0 U tuln0 ?
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 213.210.133.201 0.0.0.0 UG ppp0
ja to nedelal tak nevim kcemu je treba tuln0.
ifconfig:
eth0-
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1-
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth2-
inet addr:10.1.0.1 Bcast:10.1.255.255 Mask:255.255..0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo-
inet addr:127.0.0.1 Mask:255...0
UP LOOPBACK RUNNING MTU:3924 Metric:1
ppp0-
inet addr:195.70.157.102 P-t-P:213.210.133.201 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
tunl0-
inet addr:10.1.0.1 Mask:255.0.0.0
UP RUNNING NOARP MTU:1480 Metric:1
Premyslel jsem ze odstranim ten tuln0. Ale nesjem si stim
jistej. Pekne prosim poradte mi.
H.
Další informace o konferenci Linux