1

I know it's possible to configure the modem to automatically connect the internet using a browser, but I want to do it using bash.

I would like the network to automatically connect when the system boots.

I have a ADSL2 router/modem and I'm using the Debian 6 Squeeze.

3
  • 1
    Does your router have a command line interface if you ssh to it? (You might need to enable that in the browser first.) This is a modem+router connected to the computer over Ethernet/wifi, right? Commented Jul 11, 2012 at 23:04
  • @Gilles Yes I have a Modem(ADSL2)+Router connected to the computer over Ethernet Commented Jul 12, 2012 at 13:14
  • @Gilles I will check if there is an option on the browser graphical interface. Commented Jul 12, 2012 at 13:16

1 Answer 1

2

Usually it is possible but how to depends on your router interface.

Many router can be configured via UPnP or snmp protocol. It'd be easy to find some command-line client for these protocols (e.g. MiniUPnP, net-snmp).

If your router does not support any of these well known protocols, you could try to emulate a browser via some command line tool as wget or curl. E.g. I can reboot my ipfire router using: wget --user=USER --password=PASS https://myrouterip:444/cgi-bin/index.cgi?ACTION=Reboot

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.