The router configuration is specific to Huawei SmartAX MT880 ADSL router.
System Configuration
Login as
root.
Select System Settings > Network or system-config-network-gui on terminal.
You'll see your NIC listed there. Select it and click Edit.
Check
Activate device when computer starts and Allow all users to enable and disable this device.
Select "
Statically set IP addresses"
Enter the following values
Code:
Address : 192.168.1.2
Subnet Mask : 255.255.255.0
Default gateway address : 192.168.1.1
Press
OK.
Press
Activate.
open
/etc/resolv.conf in your favourite text editor
Append the following lines.
Code:
nameserver 61.1.96.69
nameserver 61.1.96.71
Router Configuration
Now start your
Web Browser and type
192.168.1.1 in the address bar and press
enter.
PS: Enable JavaScript in your browser, if not.
It will ask for username and password. Use admin as username and password.
Click on
WAN Settings under Home in the left pane.
If not set, enter the following values
Code:
PVC No: PVC-0
Wan Type: PPP
Connection Type: PPPoE VPI/VCI: 0 / 35
Default Route : Enabled PPP
Username: yourusername
Password: yourpassword
Use DNS: Enabled
Max Idle Time: Always On
Click
Apply
When asking for save and reboot, select
No and Press
OK.
Now click on
DNS under Home on left pane.
If not set, enter the following values
Code:
DNS Status: Enabled
Primary DNS Address: 61.1.96.69
Secondary DNS Address: 61.1.96.71
Click
Apply
When asking for save and reboot, select
No and Press
OK.
Now click on
LAN Settings Under Advanced on left pane.
If not set, enter the following values
Code:
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
Click
Apply
When asking for save and reboot, select
Yes and Press
OK.
The device will reboot now. It will take about two minute or more.
Do not refresh or close the browser window while rebooting. It's better leave your computer alone while this operation.
After the device has been rebooted, refresh the page. Now scroll down and you should see the green light for LAN and WAN (PVC-0)Channels.
Now click on
Diagnostics under Status on left pane.
On Clicking
Submit, it will do a series of tests.
Important thing is that the result of first 3 under Modem Connection Test must be PASS. Don't care others.
Now, you're done. Your machine will be connected to the internet from next reboot onwards and will be always on. If you still prefer manual connect/disconnect, uncheck the Activate device when computer starts option from network configuration window. you can use the following commands
for connecting -
ifup eth0
for disconnecting -
ifdown eth0
provided the device name of your
NIC is eth0.
You can create launchers on Desktop/Panel for the same.
Reboot your machine and Enjoy DATAONE SERVICE!!!