Re: [gentoo-user] Router 3rd and 4th net interface problem
How should eth1 and eth2 be configured in /etc/conf.d/net ? They should be configured as part of a bridge device (see the bridging section of /etc/conf.d/net.example) and have the address assigned (and DHCPD listing on) that bridge device. Except that this doesn't work on WLAN (MAC layer done by the WLAN adapter). eth1 and eth2 are both wired, no? How does 802.11a/b/g come into this? Yeah, that's just me not reading carefully. But looking at the first post by the OP, I thought that ath0 was meant to join eth1 and eth2. See my other mail, I've just clarified this. But probably proxy_arp can help here. And subnet separation, of course. Just extending the netmask a bit and enabling proxy_arp would do the job. OTOH, it's also easy to configure the routes to the other subnets via DHCP. Just a matter of taste. In any case, it only works on IP layer. I must admit that I've never used proxy_arp, but all ARP traffic occurs at the ethernet layer, below the IP layer, so it doesn't make sense to me for an option/program so named to only work on IP traffic. ARP is also only used intra-subnet, so this entire section doesn't make much sense to me. Well, for something like a bridge, it has to work inter-(physical-) subnet. Of course ARP happens on top of the link layer, just as IP. But ARP is a requirement for IP traffic. And by faking ARP answers for the computer in the other subnet, a router can redirect IP traffic to itself. It just claims all addresses in the other subnet. That's what proxy_arp does. So when it in fact uses forwarding, it behaves similar to a bridge w/ regard to that you don't need to configure all the computers with a route to the other subnet. In *any* case, it's extremely unlikely that the OP is going to be carrying any significant amount of non-IP traffic. I feel that is an extraordinary enough condition to be mentioned. I'm afraid I can't keep up with you guys here. What I'd like to do is use eth1 and ath0 on my router to serve the same local network. Can I bridge them according to net.example to accomplish this? I understand that I will either need to use a crossover cable with eth1 or attach a switch to eth1. - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
I'm afraid I can't keep up with you guys here. What I'd like to do is use eth1 and ath0 on my router to serve the same local network. Can I bridge them according to net.example to accomplish this? I understand that I will either need to use a crossover cable with eth1 or attach a switch to eth1. - Grant Hi, Shorewall (net-firewall/shorewall) can help you do this very easily, simply by adding both eth1 and eth0 to the local zone and enabling IP forwarding. Check out http://shorewall.net/two-interface.htm, under the section Adding a Wireless Segment to your Two-Interface Firewall. I use this method myself for exactly that purpose - eth0 on the internet, eth1 wired, and ath0 wireless. It's easy to substitute eth2 (or whatever interface(s) you're using) for ath0 in that scenario. This sounds like the right thing to do if it's as simple as that. I think I do want the wired and wireless interfaces on the same network for now. Setting up a DMZ for a web server does sound like an interesting project though - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
Neil Bothwick wrote: On Mon, 2 Oct 2006 08:18:38 -0700, Grant wrote: I've never used a switch before. Is there any proprietary software to configure (like with a router), or is it just a button or two? Just one button, the power switch :) Sometimes two ... if you attempt to use the uplink port [and it doesn't have autosense]. Tom Veldhouse -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On Monday 02 October 2006 10:18, Grant [EMAIL PROTECTED] wrote about 'Re: [gentoo-user] Router 3rd and 4th net interface problem': I'm pretty confused. I'm trying to get the system in question to behave like a solid-state router that you can plug an ethernet jack into and be on the network. FYI, that doesn't require the router to have a unique IP. You could simply configure each router port as a separate subnet, if you really wanted to. How should eth1 and eth2 be configured in /etc/conf.d/net ? They should be configured as part of a bridge device (see the bridging section of /etc/conf.d/net.example) and have the address assigned (and DHCPD listing on) that bridge device. Except that this doesn't work on WLAN (MAC layer done by the WLAN adapter). eth1 and eth2 are both wired, no? How does 802.11a/b/g come into this? But probably proxy_arp can help here. And subnet separation, of course. Just extending the netmask a bit and enabling proxy_arp would do the job. OTOH, it's also easy to configure the routes to the other subnets via DHCP. Just a matter of taste. In any case, it only works on IP layer. I must admit that I've never used proxy_arp, but all ARP traffic occurs at the ethernet layer, below the IP layer, so it doesn't make sense to me for an option/program so named to only work on IP traffic. ARP is also only used intra-subnet, so this entire section doesn't make much sense to me. In *any* case, it's extremely unlikely that the OP is going to be carrying any significant amount of non-IP traffic. I feel that is an extraordinary enough condition to be mentioned. I've never used a switch before. Is there any proprietary software to configure (like with a router), or is it just a button or two? Generally a switch will have no configurable software; if it has anything worth configuring the manufacturer will call it a router and add 10-15$ to the price tag. In any case, I doubt you'll find a switch that supports 802.11a/b/g, since they will always require a little bit of configuration (ESSID and keys). You could get a wireless router (e.g. Linksys' WRT line), but they will have some software configuration. If you choose the right model, it'll be Linux instead of proprietary software. However, I know of no wireless routers that come from the manufacturer with Gentoo installed. In fact, I'm fairly sure that Gentoo doesn't provide any profiles, support, or even instructions for running on such hardware, which has severe [compared to a desktop] hw limitations. -- If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability. -- Gentoo Developer Ciaran McCreesh pgpGRQBw6VB2m.pgp Description: PGP signature
Re: [gentoo-user] Router 3rd and 4th net interface problem
Hi, On Mon, 2 Oct 2006 10:49:34 -0500 Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote: How should eth1 and eth2 be configured in /etc/conf.d/net ? They should be configured as part of a bridge device (see the bridging section of /etc/conf.d/net.example) and have the address assigned (and DHCPD listing on) that bridge device. Except that this doesn't work on WLAN (MAC layer done by the WLAN adapter). eth1 and eth2 are both wired, no? How does 802.11a/b/g come into this? Yeah, that's just me not reading carefully. But looking at the first post by the OP, I thought that ath0 was meant to join eth1 and eth2. See my other mail, I've just clarified this. But probably proxy_arp can help here. And subnet separation, of course. Just extending the netmask a bit and enabling proxy_arp would do the job. OTOH, it's also easy to configure the routes to the other subnets via DHCP. Just a matter of taste. In any case, it only works on IP layer. I must admit that I've never used proxy_arp, but all ARP traffic occurs at the ethernet layer, below the IP layer, so it doesn't make sense to me for an option/program so named to only work on IP traffic. ARP is also only used intra-subnet, so this entire section doesn't make much sense to me. Well, for something like a bridge, it has to work inter-(physical-) subnet. Of course ARP happens on top of the link layer, just as IP. But ARP is a requirement for IP traffic. And by faking ARP answers for the computer in the other subnet, a router can redirect IP traffic to itself. It just claims all addresses in the other subnet. That's what proxy_arp does. So when it in fact uses forwarding, it behaves similar to a bridge w/ regard to that you don't need to configure all the computers with a route to the other subnet. In *any* case, it's extremely unlikely that the OP is going to be carrying any significant amount of non-IP traffic. I feel that is an extraordinary enough condition to be mentioned. Agreed. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
quoth the Thomas T. Veldhouse: Neil Bothwick wrote: On Mon, 2 Oct 2006 08:18:38 -0700, Grant wrote: I've never used a switch before. Is there any proprietary software to configure (like with a router), or is it just a button or two? Just one button, the power switch :) Sometimes two ... if you attempt to use the uplink port [and it doesn't have autosense]. Tom Veldhouse Interesting. Mine doesn't have any power buttons. Unless you consider yanking the power cable a 'button'. -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
Hi, On Thu, 28 Sep 2006 22:06:21 -0500 Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote: On Thursday 28 September 2006 21:43, Grant [EMAIL PROTECTED] wrote about 'Re: [gentoo-user] Router 3rd and 4th net interface problem': I'm pretty confused. I'm trying to get the system in question to behave like a solid-state router that you can plug an ethernet jack into and be on the network. How should eth1 and eth2 be configured in /etc/conf.d/net ? They should be configured as part of a bridge device (see the bridging section of /etc/conf.d/net.example) and have the address assigned (and DHCPD listing on) that bridge device. Except that this doesn't work on WLAN (MAC layer done by the WLAN adapter). But probably proxy_arp can help here. And subnet separation, of course. Just extending the netmask a bit and enabling proxy_arp would do the job. OTOH, it's also easy to configure the routes to the other subnets via DHCP. Just a matter of taste. In any case, it only works on IP layer. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On 21:19 Wed 27 Sep , Grant wrote: I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mode_ath0=master essid_ath0=mynetwork config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 and the following in /etc/dnsmasq.conf: interface=ath0 interface=eth1 interface=eth2 I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted dnsmasq. I thought it might be a problem with my iptables settings which don't take the new interfaces into account, but stopping iptables doesn't seem to help. Can anyone help me out? - Grant -- gentoo-user@gentoo.org mailing list Grant, Can you ping the server? Set up the interface manually and then try. Also, is the dhcp client connected directly to one of the interfaces on the dhcp server? If that is the case you will need a cross over cable to do it as opposed to a normal patch cable. Regards, Oliver Wilson -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mode_ath0=master essid_ath0=mynetwork config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 and the following in /etc/dnsmasq.conf: interface=ath0 interface=eth1 interface=eth2 I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted dnsmasq. I thought it might be a problem with my iptables settings which don't take the new interfaces into account, but stopping iptables doesn't seem to help. Can anyone help me out? - Grant -- gentoo-user@gentoo.org mailing list Grant, Can you ping the server? Set up the interface manually and then try. Also, is the dhcp client connected directly to one of the interfaces on the dhcp server? If that is the case you will need a cross over cable to do it as opposed to a normal patch cable. Ah, crossovers cables. I guess I need to whip one of those up. Do you think I can get away with just a box cutter when converting a patch cable if I'm careful? Do the rest of my settings above look OK? - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On Thu, 28 Sep 2006 07:12:47 -0700, Grant wrote: config_eth0=192.168.1.2 netmask 255.255.255.0 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask Do the rest of my settings above look OK? Three of your interfaces have the same IP address. If you want to use DHCP for them, they should be config_eth1=( dhcp ) config_eth2=( dhcp ) -- Neil Bothwick We are Drunk of Borg. Resilience is floor tile. Wan'be sim'lated? signature.asc Description: PGP signature
Re: [gentoo-user] Router 3rd and 4th net interface problem
On 07:12 Thu 28 Sep , Grant wrote: I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mode_ath0=master essid_ath0=mynetwork config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 and the following in /etc/dnsmasq.conf: interface=ath0 interface=eth1 interface=eth2 I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted dnsmasq. I thought it might be a problem with my iptables settings which don't take the new interfaces into account, but stopping iptables doesn't seem to help. Can anyone help me out? - Grant -- gentoo-user@gentoo.org mailing list Grant, Can you ping the server? Set up the interface manually and then try. Also, is the dhcp client connected directly to one of the interfaces on the dhcp server? If that is the case you will need a cross over cable to do it as opposed to a normal patch cable. Ah, crossovers cables. I guess I need to whip one of those up. Do you think I can get away with just a box cutter when converting a patch cable if I'm careful? Do the rest of my settings above look OK? - Grant -- gentoo-user@gentoo.org mailing list Grant, I have never made a cross over cable before, probs best to look on google, there is bound to be a guide somewhere. As for you settings, I can't see anything wrong with them. Regards, Oliver Wilson -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On Thursday 28 September 2006 05:19, Grant wrote: I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: Firstly, you really should look at /etc/conf.d/net.example and upgrade your config to the new format. config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mode_ath0=master essid_ath0=mynetwork config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 Err, you can't assign the same IP to multiple interfaces. You mention DHCP, did you mean that eth1 and eth2 are to get a DHCP leases from another server? If so, do this: config_eth1=( dhcp ) config_eth2=( dhcp ) I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted dnsmasq. I thought it might be a problem with my iptables settings which don't take the new interfaces into account, but stopping iptables doesn't seem to help. What are you using dnsmasq for? -- Mike Williams -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On 9/27/06, Grant [EMAIL PROTECTED] wrote: I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 Take another look at net.example. These should be: config_eth0=( 192.168.1.2 netmask 255.255.255.0 ) routes_eth0=( default via 192.168.1.1 ) ditto for the other config_ lines. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
I have a Gentoo router with eth0 connected to the WAN (DSL modem/router) and ath0 connected to the LAN. It works perfectly. I've added two ethernet cards and I'm trying to connect from another machine to one of the new cards (eth1 and eth2). ifconfig shows the cards are detected just fine, but dhcp always fails when trying to obtain an IP address. I have the following /etc/conf.d/net: Firstly, you really should look at /etc/conf.d/net.example and upgrade your config to the new format. Will do. config_eth0=192.168.1.2 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 config_ath0=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 mode_ath0=master essid_ath0=mynetwork config_eth1=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 config_eth2=192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 Err, you can't assign the same IP to multiple interfaces. You mention DHCP, did you mean that eth1 and eth2 are to get a DHCP leases from another server? If so, do this: config_eth1=( dhcp ) config_eth2=( dhcp ) eth0 is connected to the WAN (DSL modem/router), and ath0, eth1, and eth2 are all meant to allow other systems to connect to the LAN via DHCP. Should I be configuring eth1 and eth2 as 192.168.0.1? I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted dnsmasq. I thought it might be a problem with my iptables settings which don't take the new interfaces into account, but stopping iptables doesn't seem to help. What are you using dnsmasq for? It's for DNS and DHCP. - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
Grant, I have never made a cross over cable before, probs best to look on google, there is bound to be a guide somewhere. As for you settings, I can't see anything wrong with them. My buddy just told me that most modern NICs do autosensing so they don't require a crossover cable. Is that right? - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On 9/28/06, Grant [EMAIL PROTECTED] wrote: eth0 is connected to the WAN (DSL modem/router), and ath0, eth1, and eth2 are all meant to allow other systems to connect to the LAN via DHCP. Should I be configuring eth1 and eth2 as 192.168.0.1? No. Consider the case where your system needs to send an IP packet to 192.168.0.100. How will it know what card to use to send that? You've told it that 192.168.0.100 is on ath0...or eth1or eth2. They should be separate networks... -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
eth0 is connected to the WAN (DSL modem/router), and ath0, eth1, and eth2 are all meant to allow other systems to connect to the LAN via DHCP. Should I be configuring eth1 and eth2 as 192.168.0.1? No. Consider the case where your system needs to send an IP packet to 192.168.0.100. How will it know what card to use to send that? You've told it that 192.168.0.100 is on ath0...or eth1or eth2. They should be separate networks... I'm pretty confused. I'm trying to get the system in question to behave like a solid-state router that you can plug an ethernet jack into and be on the network. How should eth1 and eth2 be configured in /etc/conf.d/net ? - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Router 3rd and 4th net interface problem
On Thursday 28 September 2006 21:18, Grant [EMAIL PROTECTED] wrote about 'Re: [gentoo-user] Router 3rd and 4th net interface problem': My buddy just told me that most modern NICs do autosensing so they don't require a crossover cable. Is that right? Yes, all GigE cards are required to do this auto-negotiation, and some (or at least a few) 100Mbit cards will do it as well. Unless at least one of the ports you are using is GigE, don't count on it. -- If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability. -- Gentoo Developer Ciaran McCreesh pgpuXq3xjSyCN.pgp Description: PGP signature
Re: [gentoo-user] Router 3rd and 4th net interface problem
On Thursday 28 September 2006 21:43, Grant [EMAIL PROTECTED] wrote about 'Re: [gentoo-user] Router 3rd and 4th net interface problem': I'm pretty confused. I'm trying to get the system in question to behave like a solid-state router that you can plug an ethernet jack into and be on the network. How should eth1 and eth2 be configured in /etc/conf.d/net ? They should be configured as part of a bridge device (see the bridging section of /etc/conf.d/net.example) and have the address assigned (and DHCPD listing on) that bridge device. -- If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability. -- Gentoo Developer Ciaran McCreesh pgpOGaR9BSNxC.pgp Description: PGP signature