dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
1585
dbv
join:2008-12-28
Ottawa, ON

dbv

Member

Telnet into DSL modem in bridge mode?

Hi,

I'm trying to telnet into my DSL modem (in bridge mode) while the pppoe connection is up (I can't run the DSL modem in router mode).

If I configure the NIC with a static IP, I can telnet into the modem. However, when the pppoe connection is up, the NIC has to be up but can't have an IP address.

Is there a way to assign an IP address to the NIC while it's being used by ppp? OS X doesn't seem to have any problems doing that (ie, I give the NIC a static IP, then start the DSL connection and I can still telnet into the modem).

I'm using Ubuntu Lucid.

Thanks.

shdesigns
Powered By Infinite Improbabilty Drive
Premium Member
join:2000-12-01
Stone Mountain, GA

shdesigns

Premium Member

What are you using for pppoe?

Mine works fine with a IP address on the NIC so i can access the web config. The pppoe scripts (rp-pppoe) don't care if the NIC has an IP address.

It will have a problem if the NIC has a default gateway.
pablo
MVM
join:2003-06-23

1 recommendation

pablo to dbv

MVM

to dbv
Howdy,

Yes, there is a way to manually (and auto-magically) assign alternate IP ranges to your NIC. Below, I'm assing `10.1.1.34' to `eth0' and it will handle the entire C class: 10.1.1.x:

sh code:
$ ip addr add 10.1.1.34/24 dev eth0
$ ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc vboxnetflt state UP qlen 1000
link/ether 00:24:8c:7e:eb:e1 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.6/24 brd 192.168.25.255 scope global eth0
inet 10.1.1.34/24 scope global eth0
inet6 fe80::224:8cff:fe7e:ebe1/64 scope link
valid_lft forever preferred_lft forever
$ ip route show
10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.34
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.6
169.254.0.0/16 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 192.168.25.1 dev eth0
$ ip addr del 10.1.1.34/24 dev eth0
$ ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc vboxnetflt state UP qlen 1000
link/ether 00:24:8c:7e:eb:e1 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.6/24 brd 192.168.25.255 scope global eth0
inet6 fe80::224:8cff:fe7e:ebe1/64 scope link
valid_lft forever preferred_lft forever

HTH.

Cheers,
-pablo
dbv
join:2008-12-28
Ottawa, ON

1 recommendation

dbv

Member

Oh, I'm using pppoe because I got more than one IP assigned to me. I don't think my TP-link (8816) will handle multiple incoming IPs in router mode. I'd love to ditch pppoe.

OK, so assigning an IP worked (yay) and the modem appears in the arp cache but I can't connect to it. I think this is my diabolical firewall in action but that's a whole different ball game.

Thanks for the help!

shdesigns
Powered By Infinite Improbabilty Drive
Premium Member
join:2000-12-01
Stone Mountain, GA

1 recommendation

shdesigns

Premium Member

Yes, my firewall script needs to have the mode IP provided so it can open up routing.

Post the modem local IP, the interface IP and route tables, maybe something is missing.
dbv
join:2008-12-28
Ottawa, ON

1 recommendation

dbv

Member

Everything was missing. It's set to drop packets unless explicitly allowed. It's fine now. I can log in.

Thanks for trying to help!