Portál AbcLinuxu, 14. května 2025 14:01
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
193.165.XYZ.0 * 255.255.255.248 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 193.165.XYZ.1 0.0.0.0 UG 0 0 0 eth1
-------------Internet configuration--------------
IP Address 193.165.XYZ.4 (Static)
Netmask 255.255.255.248
Gateway 193.165.XYZ.1
----------------LAN configuration----------------
IP Address 192.168.1.250
Netmask 255.255.255.0
Broadcast 192.168.1.255
----------------DNS configuration----------------
Using DNS Cache
domain local
nameserver 193.165.145.12
nameserver 193.165.254.9
eth0 Link encap:Ethernet HWaddr
inet addr:192.168.1.250 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2295 errors:0 dropped:0 overruns:0 frame:0
TX packets:2274 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215894 (210.8 KiB) TX bytes:863842 (843.5 KiB)
Interrupt:9 Base address:0xf000
eth1 Link encap:Ethernet HWaddr
inet addr:193.165.XYZ.4 Bcast:193.165.XYZ.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1801 errors:0 dropped:0 overruns:0 frame:0
TX packets:831 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:108812 (106.2 KiB) TX bytes:50432 (49.2 KiB)
Interrupt:10 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:41 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3219 (3.1 KiB) TX bytes:3219 (3.1 KiB)
ip addr show
' a 'ip route show
' (místo ifconfig
a route
) a neproporcionálně (použijte element pre
). A pokud možno skutečné výpisy bez vymyšlených "XYZ", mockrát už jsem se setkal s tím, že chyba byla právě v takové zamaskované části.
cat /proc/sys/net/ipv4/ip_forward
vrátí jedničku?
mno pingnu vnitrni (eth0) z vnitrni site a pingnu zevnitr (eth0) na venkovni (eth1) sitovku ale dal me to nepustizrejme ano.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.