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.

bahamat
  • 38,658
  • 4
  • 70
  • 103
Zignd
  • 3,003
  • 10
  • 35
  • 48

1 Answers1

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

andcoz
  • 16,830
  • 3
  • 38
  • 45