Portál AbcLinuxu, 16. srpna 2025 04:07
snehurka:~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 link-local * 255.255.0.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
wget
) vezme eth0, protoze podle ty routovaci tabulky se pres nej dostane ven do internetu.
snehurka:~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.255.255.0 U 0 0 0 eth1 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 10.0.0.1 0.0.0.0 UG 0 0 0 eth1 vbnet:~ #jelikoz ale bezi maskarada, tak se do inetu dostane z obou rozhrani. staci mu rici, aby pouzil to konkretni. ve ".wgetrc" neni mozno zvolit interface. to se tato situace, dle meho neni zas tak exoticka, neda resit?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.