Tiny Core Base > TCB Q&A Forum

requesting help for 2 internet key

<< < (4/5) > >>

tinypoodle:
try this (adapted if parameters change)

--- Code: ---sudo route del default gw 192.168.1.1
sudo route add default gw 10.64.64.64
--- End code ---

Also avoid to have any dhcp client running, because that could overturn your settings later, static address for eth0 might be more simple.

Generally speaking, it might be easiest to kill udhcpc and have eth0 down while you are testing with ppp0.

vinnie:
i don't have del & add among my commands, however, udhcpc is killed when I try to set the ppp0 in netcard conf of controlpanel, after uncheck "use DHCP"

maro:

--- Quote from: vinnie on April 11, 2011, 07:54:46 PM ---i don't have del & add among my commands, however, udhcpc is killed when I try to set the ppp0 in netcard conf of controlpanel, after uncheck "use DHCP"

--- End quote ---
Yeah tinypoodle did give you slightly incomplete commands, it probably should have been:

--- Code: ---sudo route del default gw 192.168.1.1
sudo route add default gw 10.64.64.64

--- End code ---

But from my own experience with testing WiFi setup when I also have a working 'eth0' I can say with confidence: "that's just asking for trouble". As you now have two internet connection "fighting" with each other. Instead of trying to adjust routes, I simple turn off the 'eth0' NIC with sudo ifconfig eth0 down and the routing will sort itself out.

Please try this and then the four tests I gave you in reply #12 might show different results.

Edit: I don't see the need to mess around with 'udhcpc' processes when the 'eth0' NIC is down. IIRC I just kept 'udhcpc' (for 'eth0') running, and when I decided to re-activate 'eth0' (via sudo ifconfig eth0 up) it continued to use the settings it had originally obtained from my local router (which is just as well as typically each of my local clients gets the same local IP address assigned again and again).

tinypoodle:

--- Quote from: maro on April 11, 2011, 08:06:45 PM ---
--- Quote from: vinnie on April 11, 2011, 07:54:46 PM ---i don't have del & add among my commands, however, udhcpc is killed when I try to set the ppp0 in netcard conf of controlpanel, after uncheck "use DHCP"

--- End quote ---
Yeah tinypoodle did give you slightly incomplete commands, it probably should have been:

--- Code: ---sudo route del default gw 192.168.1.1
sudo route add default gw 10.64.64.64

--- End code ---

--- End quote ---

Oops!   ::)
Sorry vinnie and thanks maro for rectifying that.
(last post corrected accordingly)

tinypoodle:

--- Quote from: maro on April 11, 2011, 08:06:45 PM ---But from my own experience with testing WiFi setup when I also have a working 'eth0' I can say with confidence: "that's just asking for trouble". As you now have two internet connection "fighting" with each other. Instead of trying to adjust routes, I simple turn off the 'eth0' NIC with sudo ifconfig eth0 down and the routing will sort itself out.

Please try this and then the four tests I gave you in reply #12 might show different results.

Edit: I don't see the need to mess around with 'udhcpc' processes when the 'eth0' NIC is down. IIRC I just kept 'udhcpc' (for 'eth0') running, and when I decided to re-activate 'eth0' (via sudo ifconfig eth0 up) it continued to use the settings it had originally obtained from my local router (which is just as well as typically each of my local clients gets the same local IP address assigned again and again).

--- End quote ---

Not being an expert in networking and more empirically speaking, my impression is that for multiple network interfaces without going into any particular configuration it could work fine under the condition that there is only one dhcpc client and other interfaces are statically configure, but only if the dhcpc interface is connected to the desirable default gateway.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version