Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: smer on January 05, 2008, 05:25:38 AM

Title: Changing the network interface
Post by: smer on January 05, 2008, 05:25:38 AM
When I installed smeserver, I selected one of the NICs (eth0) as the source for internet. Now, I would like to use an ADSL (ppp0) instead. How can I change it?
Title: Re: Changing the network interface
Post by: cactus on January 05, 2008, 02:07:06 PM
When I installed smeserver, I selected one of the NICs (eth0) as the source for internet. Now, I would like to use an ADSL (ppp0) instead. How can I change it?
Login as admin and reconfigure your server.
Title: Re: Changing the network interface
Post by: smer on January 06, 2008, 03:15:52 AM
Thanks for reply. But, how can I do that. I logged in as root and typed
reconfigure
it told me command not found.
Title: Re: Changing the network interface
Post by: Normando on January 06, 2008, 04:20:31 AM
Thanks for reply. But, how can I do that. I logged in as root and typed
reconfigure
it told me command not found.
Login as "admin" user, and you can access the reconfiguration menu.
Title: Re: Changing the network interface
Post by: Stefano on January 06, 2008, 12:44:11 PM
Login as "admin" user, and you can access the reconfiguration menu.

and, of course, read the manual ;-)

ciao
Stefano
Title: Re: Changing the network interface
Post by: cactus on January 06, 2008, 12:45:25 PM
Thanks for reply. But, how can I do that. I logged in as root and typed
reconfigure
it told me command not found.
Please, please, please read what I write as I (and probably all others replying to you as well) try too help you. If I write login as admin I do not mean log in as root.

Perhaps it is worth reading the manual again as this account should be mentioned there as well.
Title: Re: Changing the network interface
Post by: smer on January 06, 2008, 06:15:47 PM
Thanks. You are right. I thought you meant root not admin. Now, I am ok. FYI, I read the documentation and could not see where it referes to recofeguring the server.
Title: Re: Changing the network interface
Post by: cactus on January 06, 2008, 06:22:24 PM
FYI, I read the documentation and could not see where it referes to recofeguring the server.
OK, thanks I added a bug for that: http://bugs.contribs.org/show_bug.cgi?id=3721
Title: Re: Changing the network interface
Post by: smer on January 06, 2008, 06:37:30 PM
Thanks for quick reply.

I tried to configure smeserver to use speedtouch dsl modem interface (nas0) or ppp0 as a source of internet, but they are not listed in the list of pre-determind ports. I know that the firewall needs this info to let data to flow in & out of the server. Should I report this as a bug also?
Title: Re: Changing the network interface
Post by: cactus on January 06, 2008, 07:09:02 PM
Thanks for quick reply.

I tried to configure smeserver to use speedtouch dsl modem interface (nas0) or ppp0 as a source of internet, but they are not listed in the list of pre-determind ports. I know that the firewall needs this info to let data to flow in & out of the server. Should I report this as a bug also?
What do you mean by listed ports and pre-determined ports? Where did you see such a list? If you have been able to setup your speedtouch dsl modem as the second interface everything should be fine.
Title: Re: Changing the network interface
Post by: smer on January 06, 2008, 07:28:34 PM
I logged in as admin >> selected item 2 "Configure this server" >>>>>>> "Select external access mode" shows 2 options:
1- Dedicated
2- Dailup
If I select the 1st option it will show ethernet cards and ethernet drivers only which do not apply in my case. If I select 2nd opton. it will show the list of pre-determind ports that I mentioned above.
Title: Re: Changing the network interface
Post by: cactus on January 06, 2008, 07:33:21 PM
I logged in as admin >> selected item 2 "Configure this server" >>>>>>> "Select external access mode" shows 2 options:
1- Dedicated
2- Dailup
If I select the 1st option it will show ethernet cards and ethernet drivers only which do not apply in my case. If I select 2nd opton. it will show the list of pre-determind ports that I mentioned above.
What kind of SpeedTouch DSL modem is this (modelnumber)? Is it an external or internal interface?
Title: Re: Changing the network interface
Post by: smer on January 06, 2008, 07:44:59 PM
speedtocuh 330 red colour USB.
Title: Re: Changing the network interface
Post by: imcintyre on January 06, 2008, 07:52:10 PM
No support for USB Modems, unless recent add.

http://forums.contribs.org/index.php?topic=33021.0
Title: Re: Changing the network interface
Post by: cactus on January 06, 2008, 08:55:21 PM
No support for USB Modems, unless recent add.

http://forums.contribs.org/index.php?topic=33021.0
Nope, it still has not... and I wonder if it will ever be incorporated.
Title: Re: Changing the network interface
Post by: smer on January 07, 2008, 08:34:14 AM
I am willing to help the developers in this. I have several types of USB modems. I have the scripts that will get them to work in CentOS (which SMEServer is based on). I can share the scripts and howtos with the team and do the testing. Please, let me know if the developers are interested in incoporating them.

FYI, I was able to use my speedtouch modem to connect to my ISP in SMEServer but do not know how to manage the rest. To get it to connect I installed the following packages:

linux-atm-2.5.0-0.20050118.2.i386.rpm
linux-atm-libs-2.5.0-0.20050118.2.i386.rpm

and used the following scripts:

Code: [Select]
# /etc/ppp/peers/speedtch
noipdefault
defaultroute
user xxxxx@1024.xxxxx.net
noauth
updetach
usepeerdns
plugin rp-pppoe.so
nas0

### You may need to uncomment these
### options to connect with some ISP's.
### They disable compression.

# noaccomp
# nobsdcomp
# nodeflate
# nopcomp
# noccp
# novj

### If the firmware loads and pppd won't
### connect uncomment this option to make
### pppd be more verbose in the system log

# debug

### For more details (and more options)
### Read man pppd

and

Code: [Select]
#!/bin/bash
#pppoe DSL connection dial file
modprobe ppp_generic
modprobe pppoatm
modprobe br2684
count=0
while [[ $((count++)) -lt 40 ]]
do
  sync=$(dmesg | grep "ADSL line is up" )
  if [ ! -z "$sync" ]
  then
    br2684ctl -b -c 0 -a vci.vpi
    sleep 3
    ifconfig nas0 192.168.2.1 netmask 255.255.255.0 up
    sleep 10
    pppd call speedtch
    exit 0
  fi
  sleep 1
done

I edited pap-secrets and chap-secrets also. I have to do this step everytime I reconfigure the system.

After connecting I got ppp0 in addition to nas0 (192.168.2.1 netmask 255.255.255.0) which was created before dialing.
Title: Re: Changing the network interface
Post by: cactus on January 07, 2008, 09:59:10 AM
I am willing to help the developers in this. I have several types of USB modems. I have the scripts that will get them to work in CentOS (which SMEServer is based on). I can share the scripts and howtos with the team and do the testing. Please, let me know if the developers are interested in incoporating them.
I doubt if they are willing, but the best way to find out is to add it as a New Feature Request in the bugtracker, perhaps including your scripts as attachements as they are always more willing to implement stuff when they do not need to reinvent the wheel :-)
Title: Re: Changing the network interface
Post by: imcintyre on January 07, 2008, 04:08:00 PM
Perhaps if it is a "contrib" or a how to...
Title: Re: Changing the network interface
Post by: smer on January 08, 2008, 07:48:08 AM
I think it will be a useless howto at this stage since the user will be able to connect to ISP but will not be able to use the new interface. I will keep trying to get SMEServer to recognize the new interface, if I succeed, I will provide a complete howto. I hope the developers at least add another list for the interfaces includes: ppp0, ppp1, nas0, nas1, tun0, tun1, tap0 and tap1. These are the interfaces that I know that USB modems use.