View previous topic :: View next topic |
Author |
Message |
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Mon May 09, 2005 8:53 pm Post subject: [Solved] Problems with the Home Router Guide |
|
|
Hi,
dunno if I'm just too stupid...
I followed the guide (http://www.gentoo.org/doc/en/home-router-howto.xml) exactly, but the Quote: | Code Listing 3.1: Setting up eth1 | doesn't seem to work for me...
When I do the following:
Code: | # nano /etc/conf.d/net
Add an entry for ifconfig_eth1 and set it to adsl:
ifconfig_eth1=( "adsl" )
# ln -s net.eth0 /etc/init.d/net.eth1
# rc-update add net.eth1 default
# /etc/init.d/net.eth1 start |
...my machine tells me:
Quote: | * Bringing eth1 up...
adsl: Unknown host
ifconfig: `--help' gives usage information. [ !! ] |
...which is very annoying.
However, I still can connect to the internet, but noone else on my LAN.
I have no idea why this happens and thank you very much for even reading thisl. Any suggestions why this is happening?
Last edited by M4554KK3R on Tue May 10, 2005 1:22 am; edited 1 time in total |
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Mon May 09, 2005 8:58 pm Post subject: |
|
|
Did you turn on forwarding?
#Enable IP Forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
Or maybe that doesn't apply to your situation? _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Mon May 09, 2005 9:00 pm Post subject: |
|
|
yes, i did. even in /etc/sysctl.conf
however, eth1 fails on me on boot, and i dunno why |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Mon May 09, 2005 9:18 pm Post subject: |
|
|
some told me to replace the "adsl" with either a "normal" setting like "<ip> <mask> <whatever>" or just don't have any entry for eth0...
however, none of it works so that ppl on my lan can connect (but now i don't get the eth1 error anymore ^^) |
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Mon May 09, 2005 9:28 pm Post subject: |
|
|
Yeah if eth1 is your internal nic, give it its own IP and point all your boxes to that IP as their gateway (unless you're running dhcp from your router). Here's my /etc/conf.d/net if it helps:
Code: | iface_eth0="192.168.2.2 broadcast 192.168.2.255 netmask 255.255.255.0"
iface_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.2.1" |
A little weird because my dsl comes on a modem+router combo, but you get the idea. For yours I guess you'd want but then your eth1 should look similar to what I pasted above. _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Mon May 09, 2005 9:45 pm Post subject: |
|
|
my eth0 is the internal link, eth1 the external
right now, my settings are
Quote: | iface_eth0="dhcp"
ifconfig_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mtu 1492 up" )
ifconfig_eth1=( "192.168.0.88 broadcast 192.168.0.255 netmask 255.255.255.0 mtu 1492 up" )
ifconfig_ppp0=( "dhcp" ) |
so i've no gateway added. but that should be no problem, since adsl-start sets ppp0 as defaultroute if it connects. or could it be a problem? |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Mon May 09, 2005 10:55 pm Post subject: |
|
|
M4554KK3R wrote: | my eth0 is the internal link, eth1 the external
right now, my settings are
Quote: | iface_eth0="dhcp"
ifconfig_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mtu 1492 up" )
|
|
You've got a problem with your settings. You're telling your computer "use dhcp for eth0 and set it up statically."
Pick one or the other but never ever both. |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Mon May 09, 2005 11:20 pm Post subject: |
|
|
thanks... however, that didnt fix the problem...
but now it seems iptables does something wrong... the router itself can do whatever it wants on the net while it is totally hidden for others... and users on the lan can't ping outside |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Tue May 10, 2005 1:21 am Post subject: |
|
|
thanks for all your time guys, i finally found the error: it's in the home router guide...
in "Code Listing 5.3: Setting up iptables", in the part with "Finally we add the rules for NAT", the subnetmasks are wrong, they're 255.255.0.0 instead of 255.255.255.0 as used in the rest of the guide (and by me).
I looked over it a dozen times without noticing, but finally i saw it... i was already doubting in myself
I dropped vapier a mail, hope he's gonna fix it |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Tue May 10, 2005 7:25 am Post subject: |
|
|
my fault, my fault...
i didn't read carefully enough about the baselayout > 1.10.foo, i thought it was saying > 1.1.0foo \:
so now the "adsl" part should work according to the mantainer
with the masks i don't know yet, he tells there's no mistake and that they're working for him... not yet a real solution for me, working on it |
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Tue May 10, 2005 12:35 pm Post subject: |
|
|
Are your clients set up properly in /etc/conf.d/net? If you're not running dhcp on this router, did you set the clients up correctly? _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Tue May 10, 2005 5:51 pm Post subject: |
|
|
as i wrote already, everything works fine now, but when i use the three iptables rules with the 255.255.0.0 netmask, noone on my lan can surf the net... however, when is use the same rules with netmask 255.255.255.0 it works fine
according to the mantainer, it should work with both, but since i don't need the former, i'm happy as it is
with baselayout 1.11.11-r3 the line with adsl works fine |
|
Back to top |
|
|
Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1630 Location: indiana
|
Posted: Tue May 10, 2005 8:02 pm Post subject: .. |
|
|
what did you about the adsl host not found error ? i still cant connect and i do have the same probleml, dhcp works fine, adsl works fine but my client cant ping the internet ... PLZ help me... _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Radeon 7900XTX ; kernel 6.11.3 ; XFCE |
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Tue May 10, 2005 8:18 pm Post subject: |
|
|
I think he's saying that you just need to make sure all your netmasks are 255.255.255.0. _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
M4554KK3R n00b
Joined: 15 Feb 2004 Posts: 34 Location: Hamburg
|
Posted: Tue May 10, 2005 11:33 pm Post subject: |
|
|
Mgiese: you need a baselayout greater than 1.10 (they're unstable btw, which made me miss them in the first place)
i emerged 1.11.11-r3 which works fine |
|
Back to top |
|
|
Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1630 Location: indiana
|
Posted: Wed May 11, 2005 10:22 am Post subject: nothing |
|
|
M4554KK3R wrote: | Mgiese: you need a baselayout greater than 1.10 (they're unstable btw, which made me miss them in the first place)
i emerged 1.11.11-r3 which works fine |
hi , i dont understand a bit... what is baselayout 1.10 ? i got it working now too. but i still have the ADSL host unknown message while booting.
cuiiiiiiii _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Radeon 7900XTX ; kernel 6.11.3 ; XFCE |
|
Back to top |
|
|
|