[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
 

SV: [TEKNIK] 2 netkort, en gateway



har du kompilet din kerne med ip masqurading ????

for hvis du har.

så skulle du, hvis du da kan pinge de andre hosts på dit net.
nøjes med følgende komando:

ipchains -A forward -j MASQ -i eth0

husk lige at enable routing fx i netcfg /netconf

eller noget ligende

echo "1" /proc/net/ipv4/ip_forward

den sidste er jeg ikke helt sikker på er den rigtige path men det er noget
ligende. men ellers brug netconf. det virker hvertfald.

!!!!!!!! Best Regards !!!!!!!!!
Lord Nikon A.K.a Daniel Pedersen
e-mail: sslug@sslug


-----Oprindelig meddelelse-----
Fra: sslug@sslug
[mailto:sslug@sslug vegne af Jesper Andersen
Sendt: 16. april 2000 21:19
Til: sslug@sslug
Emne: [TEKNIK] 2 netkort, en gateway


Jeg har vist stirret mig blind på mit problem.
Jeg er koblet op med kabel via eth0(ne2k-pci) til internettet, og
resten af mit net ville jeg gerne have kontakt med via eth1(tulip).
Mit internet virker ganske glimrende, men der er absolut ingen kontakt
med det andet net. Jeg starter manuelt eth1 op med følgende linie:
ifconfig eth1 172.16.0.1 netmask 255.255.0.0 up
Derefter ser min route -n ud som følgende:
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.54.0    0.0.0.0         255.255.255.0   U     0      0        0
eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0
eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.54.254  0.0.0.0         UG    1      0        0
eth0
En ifconfig på de to netkort ser således ud:
eth0      Link encap:Ethernet  HWaddr 00:40:95:43:BA:A1
          inet addr:192.168.54.32  Bcast:192.168.54.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xcc00

eth1      Link encap:Ethernet  HWaddr 00:00:B4:7E:3A:B6
          inet addr:172.16.0.1  Bcast:172.16.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:6 dropped:0 overruns:0 carrier:12
          collisions:0 txqueuelen:100
          Interrupt:11 Base address:0xc800
Nogle der har øjne til at se hvad jeg mangler(og evt ikke var i byen i
går :))?
Det skal nævnes kortetne virker, og kablingen mellem dem er
testet(manuelt med lidt bootdisk og noget).

--
/Jesper Andersen
George: What should we do if we step on a land-mine?
Blackadder: Well George, standard procedure is to jump 200 ft. up
            in the air and scatter yourself over a large area!



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 21:38 CEST [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] *