[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Routing mellan nätverk



Hej!

Jag har experimenterat med att få routing att fungera men tyvärr så har jag inte lyckats. Förhoppningsvis så kan ni se vad jag gör för fel. Det är säkert något grundläggande som jag har missat.

Uppsättningen är som följer;

Debian 3.1 på en x86-maskin. Datorn har ett inbyggt nätverkskort och två extra i PCI-slots.

(1) Inbyggt nätverkskort
IP    : 192.168.100.53
NM : 255.255.255.0
GW: 192.168.100.1 (Min ADSL-router som delar ut Internet via NAT)

(2) PCI-korplats 1
IP    : 192.168.201.1
NM : 255.255.255.0
GW: -

(3) PCI-korplats 2
IP    : 192.168.202.1
NM : 255.255.255.0
GW: -

Min tanke var att detta borde räcka för att få routing uppsatt om jag bara sätter igång ip-forwarding, men tyvärr så var det inte så enkelt.

Om jag kopplar in en dator på nätverk (2) så kan jag pinga 192.168.201.1, 192.168.202.1, 192.168.100.100 men inte min ADSL- router på 192.168.100.1 och inte heller kommer jag ut på internet. Jag tror nog att det skulle fungera om jag satte upp det med NAT, men jag vill om möjligt undvika detta.


Så här ser mina konfigurationer ut;


debian:/etc/network# cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto eth2
iface eth2 inet static
    address 192.168.100.100
    netmask 255.255.255.0
    gateway 192.168.100.1

auto eth0
iface eth0 inet static
    address 192.168.201.1
    netmask 255.255.255.0

auto eth1
iface eth1 inet static
    address 192.168.202.1
    netmask 255.255.255.0


debian:/etc/network# cat options ip_forward=yes spoofprotect=yes syncookies=no


debian:/etc/network# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 * 255.255.255.0 U 0 0 0 eth2
192.168.201.0 * 255.255.255.0 U 0 0 0 eth0
192.168.202.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.100.1 0.0.0.0 UG 0 0 0 eth2




Jag är tacksam för all hjälp som kan få mig att komma vidare!

Med vänliga hälsningar,

/Patrik





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *