LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet Sharing & nic bridge? (https://www.linuxquestions.org/questions/linux-networking-3/internet-sharing-and-nic-bridge-51682/)

Mara 03-28-2003 04:20 PM

Hmm...Maybe it would be easier to change IP of one of your machines to a different subclass? 192.168.1.x, for example. I don't know if it can give interesting info, put try to traceroute (in Windows tracert, as far as I know) 192.168.0.10 from 192.168.0.70 and post the result. Try it also the other way.

darchon 03-28-2003 05:37 PM

Oki.. now i have changed it a little bit.

Internet
||
Linux
|| \\
|| 192.168.1.2 <=> 192.168.1.10
||
192.168.0.3 <=> 192.168.0.70

With prev. configuration i couldnt get any jumps (tracert) now I get "tracert 192.168.0.70" to jump to 192.168.1.2 but then it times out. same other way.
Code:

Its swedish but it should be clear anyway (or?).

Spårar route till 192.168.0.70 över ett maximalt antal av 30 hopp

  1  <10 ms  <10 ms  <10 ms  FLINTIS [192.168.1.2]
  2    *        *        *    Begäran gjorde timeout.
  3    *        *        *    Begäran gjorde timeout.


Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth2
192.168.0.0    *              255.255.255.0  U    0      0        0 eth1
130.239.145.0  *              255.255.255.0  U    0      0        0 eth0
127.0.0.0      *              255.0.0.0      U    0      0        0 lo
default        130.239.145.1  0.0.0.0        UG    0      0        0 eth0


david_ross 03-28-2003 05:58 PM

Have you tried setting the gateway to being the same as the IP of the interface it is using?

darchon 03-28-2003 06:13 PM

Q: which command can I use to restart eth(x)

david_ross 03-28-2003 06:24 PM

To add a route:
1) delete an old route first "route del 192.168.1.0" etc
2) add "route add -net 192.etc netmask 255.etc gw 192.etc"
changing etc to the rest of the ip obviously

You can restart the whole network using:
/etc/init.d/network restart

or 1 card using:
ifdown ethx
ifup ethx

darchon 03-28-2003 06:30 PM

I tried this but no luck =(
Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.10    192.168.1.2    255.255.255.255 UGH  0      0        0 eth2
192.168.0.70    192.168.0.3    255.255.255.255 UGH  0      0        0 eth1
192.168.1.0    *              255.255.255.0  U    0      0        0 eth2
192.168.0.0    *              255.255.255.0  U    0      0        0 eth1
130.239.145.0  *              255.255.255.0  U    0      0        0 eth0
127.0.0.0      *              255.0.0.0      U    0      0        0 lo
default        130.239.145.1  0.0.0.0        UG    0      0        0 eth0


darchon 03-29-2003 03:00 AM

Now i got it to work... it was the firewall that were blocking added
Code:

$IPTABLES -A FORWARD -i $INTIF -o $INTIF2 -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF2 -o $INTIF -j ACCEPT



All times are GMT -5. The time now is 02:12 AM.