RFC 1483 and half-bridge

General networking problems and issues. Questions about cabling, switches, hubs etc. can go here.
Post Reply
stefan@setras.net
Newbie
Newbie
Posts: 4
Joined: Tue Oct 28, 2008 1:30 am

RFC 1483 and half-bridge

Post by stefan@setras.net » Wed Oct 29, 2008 2:53 am

Hi,

I'm using a Dlink DSL-320T connected to a Mikrotik router who provides all NAT and Firewall functions. The Dlink firmware is quiet unstable and I'm looking into switching to Routertech.

My ISP is Telefonica which ues RFC 1483 routed fixed IP.

What setting do I have to use so that the Dsl-320T is as dum/transparent as possible (no NAT and Firewall).

I saw some posts how to set-up half-bridge mode for PPPoA but nothing about RFC 1483 routed

Thanks!
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Wed Oct 29, 2008 8:40 am

Hi,

I don't think anyone has asked this before, you don't usually need half-bridge for PPPOE connections.

Is RFC 1483 routed a form of PPPOE where you enter the username and password in the 320T? If so, have you tried just selecting Bridge mode in the 320T and setting up the router for PPPOE with same username/password?
stefan@setras.net
Newbie
Newbie
Posts: 4
Joined: Tue Oct 28, 2008 1:30 am

Post by stefan@setras.net » Wed Oct 29, 2008 1:20 pm

No it is not PPPoE.

If I understand the documention correctly RFC 1483 routed is set-up by selecting - static IP, LLC and routed.

In the original Dlink firmware v3.20 you select static IP, RFC 1483 routed LLC and enter the static IP address. The DSL-320T will then pass the WAN IP to the LAN site.

Tonight, I will try out how the Routertech firmware reacts.

How can I check that the Firewall and NAT are not active?
stefan@setras.net
Newbie
Newbie
Posts: 4
Joined: Tue Oct 28, 2008 1:30 am

Post by stefan@setras.net » Wed Oct 29, 2008 7:27 pm

Hi,

bad news I couldn't get static IP routed to work at all.

After adding a static default route I can ping the Internet from the DSL-320T but I can't get to the Internet from my PC. I've tried it with and without NAT/Firewall.

I also get always the DSL-320T IP address via DHCP and not the WAN IP.

Anything I'm missing here?
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Wed Oct 29, 2008 10:07 pm

Sorry I don't know about this connection method, but I suspect it is also known as IPOA (IP over Atm). Was the Original D-Link firmware running its form of half bridge called ZIPB? If so its possible the RouterTech half bridge script would work. You can try the command

pppHB.sh init -nofw

from a command line console - if it doesn't work just power cycle to recover.

If you give the command

ifconfig

do you have a ppp0 interface with the ISP WAN IP?
stefan@setras.net
Newbie
Newbie
Posts: 4
Joined: Tue Oct 28, 2008 1:30 am

Post by stefan@setras.net » Thu Oct 30, 2008 8:29 pm

Hi,

no I don't have an 'ppp0' interface just an 'nas' one.

But before we can work on the half bridge I have an more fundamental problem. I can't get it working in normal mode.

When I configure the box with dlink software I get the following routing and interface table

Destination Gateway Genmask Flags Metric Ref Use Iface
79.168.102.73 * 255.255.255.255 UH 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
239.0.0.0 * 255.0.0.0 U 1 0 0 br0
default * 0.0.0.0 U 0 0 0 nas0
# ifconfig
br0 Link encap:Ethernet HWaddr 00:1C:F0:DA:3F:66
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ASYMMTU:1500
RX packets:590 errors:0 dropped:0 overruns:0 frame:0
TX packets:623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72561 (70.8 kb) TX bytes:227079 (221.7 kb)

br1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ASYMMTU:1500
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:1C:F0:DA:3F:66
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ASYMMTU:1500
RX packets:595 errors:0 dropped:0 overruns:0 frame:0
TX packets:619 errors:0 dropped:0 overruns:0 carrier:0
collisions:13 txqueuelen:100
RX bytes:73463 (71.7 kb) TX bytes:226858 (221.5 kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1 ASYMMTU:0
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

nas0 Link encap:Ethernet HWaddr 00:1C:F0:DA:3F:66
inet addr:79.168.102.73 Bcast:79.168.102.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ASYMMTU:1500
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3580 (3.4 kb) TX bytes:1685 (1.6 kb)

when I configure the modem with routertech just setting
- mode static -VPI 8 -VCI 32 -IP 79.168.102.73 - mask 255.255.255.192 -gw 10.183.45.220 - DNS server
- click routed ; everything else stays default

I get the following output

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
79.168.102.64 * 255.255.255.192 U 0 0 0 nas0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
239.0.0.0 * 255.0.0.0 U 1 0 0 br0
/var # ifconfig
br0 Link encap:Ethernet HWaddr 00:1C:F0:DA:3F:66
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:145 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:12760 (12.4 KiB) TX bytes:4763 (4.6 KiB)

br1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

br2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 00:1C:F0:DA:3F:66
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:16053 (15.6 KiB) TX bytes:4763 (4.6 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

nas0 Link encap:Ethernet HWaddr 01:E0:03:04:05:03
inet addr:79.168.102.73 Bcast:79.168.102.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:607 (607.0 B) TX bytes:0 (0.0 B)


Nothing works! I added a default routing statement and I then can ping the internet and LAN from the modem but I have no connection from the Lan to the internet.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
79.168.102.64 * 255.255.255.192 U 0 0 0 nas0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
239.0.0.0 * 255.0.0.0 U 1 0 0 br0
default 10.183.45.220 0.0.0.0 UG 0 0 0 nas0


I'm clueless - any ideas
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Thu Oct 30, 2008 9:28 pm

The D-link firmware is clearly using its half-bridge code, the routing table defines a route to the WAN IP via br0, but the router nas0 interface has the same IP - this doesn't normally work - the nas0 IP has to be hidden by a kernel patch I believe.

Don't bother with the RouterTech half-bridge code, it expects a point-to-point interface (ie ppp0) and pppd IP UP/down scripts so won't work!

By comparison with the RouterTech half-bridge script you could try removing the WAN IP from nas0 with

ifconfig nas0 0.0.0.0

then defining a route to the WAN IP via br0 with

route add -host 79.168.102.64 dev br0

as well as your default route via nas0 which needs 2 route commands doesn't it?

But as it appears your IP is dynamic this really means a no-go with RouterTech.
Post Reply