Linux - HOWTO (With Stats)

Status
Not open for further replies.
Before connecting:

peter@earth:~$ cat /etc/resolv.conf
nameserver 168.210.2.2
nameserver 196.14.239.2
search mshome.net

With bogus DNS addresses returned:

peter@earth:~$ cat /etc/resolv.conf
nameserver 10.11.12.13
nameserver 10.11.12.14
search mshome.net

Successful connection:

peter@earth:~$ cat /etc/resolv.conf
nameserver 196.25.255.34
nameserver 196.25.255.3
search mshome.net

Maybe you need to be more specific about what you were looking for ... this is Ubuntu 5.10:

peter@earth:~$ cat /etc/sysconfig/network
cat: /etc/sysconfig/network: No such file or directory
 
Ok, I am not too sure where this goes in Ubuntu, but with the Redhat distros you can put an entry in /etc/sysconfig/network

PEERDNS=no

to prevent dialup and dhcp to overwrite your /etc/resolve.conf. So if you want to go that route, just figure out where to turn peer dns off, and specify all your dns servers manually in the order you want them used.

You can also write a little script to fix your dns entries when they go FUBAR.

#!/bin/bash bash
perl -pi -e 's/10.11.12.13/196.25.255.34/' /etc/resolv.conf
perl -pi -e 's/10.11.12.14/196.25.255.3/' /etc/resolv.conf
 
Thanks for this work-around - I'll try it (but I'd much rather get the right addresses from the GGSN (or whatever)). Makes me think there's something unhealthy lurking in the network!
 
I am wondering if your default route may not be messed up as well.

What do you get when you run
route -n
when it works and when it doesn't

Also if you get answers when you do the following (again in both scenarios):

dig google.com @10.11.12.13
dig google.com @196.25.255.34
ping 196.4.160.3
 
On the 'internet' APN:

# Nothing from 10.11.12.13 (I'm sure it doesn't exist)
peter@earth:~$ dig google.com @10.11.12.13

; <<>> DiG 9.3.1 <<>> google.com @10.11.12.13
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached

# 196.25.255.34 works as expected:
peter@earth:~$ dig google.com @196.25.255.34

; <<>> DiG 9.3.1 <<>> google.com @196.25.255.34
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59240
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 300 IN A 72.14.207.99
google.com. 300 IN A 64.233.187.99
google.com. 300 IN A 64.233.167.99

;; Query time: 571 msec
;; SERVER: 196.25.255.34#53(196.25.255.34)
;; WHEN: Fri Feb 3 22:37:29 2006
;; MSG SIZE rcvd: 76

# Ping for ... 196.4.160.3 returns nothing, but
peter@earth:~$ dig -x 196.4.160.3 @196.25.255.34

; <<>> DiG 9.3.1 <<>> -x 196.4.160.3 @196.25.255.34
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37276
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;3.160.4.196.in-addr.arpa. IN PTR

;; ANSWER SECTION:
3.160.4.196.in-addr.arpa. 39833 IN PTR jupiter.is.co.za.

;; Query time: 321 msec
;; SERVER: 196.25.255.34#53(196.25.255.34)
;; WHEN: Fri Feb 3 22:40:44 2006
;; MSG SIZE rcvd: 72

# route -n shows a default route to 10.64.64.64, which is a default address, but at
# least points to ppp0 (datacard)
peter@earth:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0

Does this shed any light?
 
It does at least show that your routing table seems to be ok.
I am using MTN at the moment, since Vodacom is such a rip, but pm or post your wvdial.conf settings, and I will test here with a Debian based distro and Vodacom.

As a workaround, you can put the working dns settings in your /etc/resolv.conf, and put the following line in your wvdial.conf:

Auto DNS = 0
(probably after Stupid Mode = 1), or only in the dialer sections that do not resolve correctly or create a

[Dialer nodns]
Auto DNS = 0

and dial using
wvdial internet 3gpref nodns
or whatever you normaly use, but just with nodns.

If you are connecting this machine using other networks, you will probably need to also have those dns settings in there. Also put something like one of IS's or MWEB's dns servers in there at the bottom, for failover when t does not see anything else.
 
Hi there, guys. I need help.

I set up the Option Fusion 3g data card on my LG notebook running Ubuntu.
The wvdial.conf file it set up correctly, and I use the following commands to open a connection...

sudo modprobe serial_cs

/etc/init.d/pcmcia start

sudo modprobe usbserial vendor=0x0af0 product=0x6300

wvdial option internet 3gonly 384k

When I do the above then it seems to be connected but I get the following errors in the 'tail -f /var/log/syslog'...

Could not determine remote IP address: defualting to 10.64.64.64
Could not determine ethernet IP address of proxy ARP

I tried using the command 'route del default gw' but it doesnt seem to change anything. I can connect and disconnect, but I cant browse the web, there seem to be something wrong with the ip address settings or something.

Please help!!!
 
I figured it out!

I phoned vodacom and asked them for their DNS addresses, then I went System> Administration> Networking> DNS and changes those addy's to the ones that vodacom gave me, and viola it works :)

intoxique said:
Hi there, guys. I need help.

I set up the Option Fusion 3g data card on my LG notebook running Ubuntu.
The wvdial.conf file it set up correctly, and I use the following commands to open a connection...

sudo modprobe serial_cs

/etc/init.d/pcmcia start

sudo modprobe usbserial vendor=0x0af0 product=0x6300

wvdial option internet 3gonly 384k

When I do the above then it seems to be connected but I get the following errors in the 'tail -f /var/log/syslog'...

Could not determine remote IP address: defualting to 10.64.64.64
Could not determine ethernet IP address of proxy ARP

I tried using the command 'route del default gw' but it doesnt seem to change anything. I can connect and disconnect, but I cant browse the web, there seem to be something wrong with the ip address settings or something.

Please help!!!
 
Suse 10.0

Anybody managed to get it to work with this. My old laptop had suse 9.3 was really simple but now dont know where to start . Anyne ?
 
Hey web,

If you follow it from the top all should be well - give it a try and post the questions and let's solve them :)

Laterz

web said:
Anybody managed to get it to work with this. My old laptop had suse 9.3 was really simple but now dont know where to start . Anyne ?
 
first
/etc/init.d/pcmcia start
does nothing says command not found.

ok when i do
tail -f /var/log/messages i get the following error when inserting the card.

linux kernel:serial_cs: serial8250_register_port at 0x03f8 irq3 failed

I read in the release notes that they have changed something with regards pcmcia hardware will look for the docs.
 
Last edited:
Hey web,

install the pcmcia stuff first :)

Laterz !

web said:
first
/etc/init.d/pcmcia start
does nothing says command not found.

ok when i do
tail -f /var/log/messages i get the following error when inserting the card.

linux kernel:serial_cs: serial8250_register_port at 0x03f8 irq3 failed

I read in the release notes that they have changed something with regards pcmcia hardware will look for the docs.
 
Hi,

I have been trying to get my Novatel 3G card to work with SUSE 9.3 on an HP nx6110 laptop. I have done some reading in this forum and also found a few pointers on the Net. I have however been unable to get the 3G card to work. The following is the process that I followed:

1) boot SUSE 9.3
2) open console window
3) su to root
4) cardctl status returns that no card has be inserted
5) insert the 3G card... no lights or any changes observed in /var/log/messages
6) restart the pcmcia services
7) cardctl status now shows that a card is inserted
8) 3G card blinks (blue about twice a second)
9) execute of cat /proc/bus/usb/devices returns no information regarding Vodafone card
10) As a test I connected a 4 port usb hub to one of the laptops use ports, the hub functions correctly
11) Not sure what the exact message regarding usb OHCI that I must get
12) cardctl info returns correct information for a Novatel card
13) At this point I am stuck and do not know what else to do...anyone got any ideas???

Thanks
SoftDev
 
Hi SoftDev,

First of all - you are looking for an Option card while you have a Novatel. The Novatel card doesn't register a USB bus like the Option, instead it registers a Multi-Function device. I haven't gotten this to work 100% yet under Linux, but because there is clever people out there, it registers a simple serial port. This port acts like any standard modem and is normally on /dev/ttyS2.

Simply follow the instructions at the start of this thread - for Novatel and you will be fine. Later on your can swap to Suse' dialup and config :)

Laterz !
SoftDev said:
Hi,

I have been trying to get my Novatel 3G card to work with SUSE 9.3 on an HP nx6110 laptop. I have done some reading in this forum and also found a few pointers on the Net. I have however been unable to get the 3G card to work. The following is the process that I followed:

1) boot SUSE 9.3
2) open console window
3) su to root
4) cardctl status returns that no card has be inserted
5) insert the 3G card... no lights or any changes observed in /var/log/messages
6) restart the pcmcia services
7) cardctl status now shows that a card is inserted
8) 3G card blinks (blue about twice a second)
9) execute of cat /proc/bus/usb/devices returns no information regarding Vodafone card
10) As a test I connected a 4 port usb hub to one of the laptops use ports, the hub functions correctly
11) Not sure what the exact message regarding usb OHCI that I must get
12) cardctl info returns correct information for a Novatel card
13) At this point I am stuck and do not know what else to do...anyone got any ideas???

Thanks
SoftDev
 
Hi Tazz_Tux,

Thanks for the advice, I have tried it but the serial port is not being recognized.

I have to restart the PCMCIA services as inserting the card does nothing. The messages that I receive in the log is as follows

Mar 7 16:48:27 linux cardmgr[9100]: exiting
Mar 7 16:48:27 linux kernel: unloading Kernel Card Services
Mar 7 16:48:27 linux kernel: Linux Kernel Card Services
Mar 7 16:48:27 linux kernel: options: [pci] [cardbus] [pm]
Mar 7 16:48:28 linux kernel: ACPI: PCI interrupt 0000:02:06.0[A] -> GSI 10 (level, low) -> IRQ 10
Mar 7 16:48:28 linux kernel: Yenta: CardBus bridge found at 0000:02:06.0 [103c:099c]
Mar 7 16:48:28 linux kernel: Yenta: ISA IRQ mask 0x00f8, PCI irq 10
Mar 7 16:48:28 linux kernel: Socket status: 30000411
Mar 7 16:48:29 linux cardmgr[9380]: watching 1 socket
Mar 7 16:48:29 linux kernel: cs: IO port probe 0xc00-0xcff: excluding 0xcf8-0xcff
Mar 7 16:48:29 linux kernel: cs: IO port probe 0x820-0x8ff: clean.
Mar 7 16:48:29 linux kernel: cs: IO port probe 0x800-0x80f: clean.
Mar 7 16:48:29 linux kernel: cs: IO port probe 0x3e0-0x4ff: clean.
Mar 7 16:48:29 linux kernel: cs: IO port probe 0x100-0x3af: clean.
Mar 7 16:48:29 linux kernel: cs: IO port probe 0xa00-0xaff: clean.
Mar 7 16:48:29 linux kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Mar 7 16:48:29 linux cardmgr[9381]: socket 0: Serial or Modem

Basically the serial port is not being assigned to ttyS* ???

I have included some other config info, maybe this can help.

>cardctl config
Socket 0:
Vcc 5.0V Vpp1 0.0V Vpp2 0.0V
interface type is "memory and I/O"
irq 10 [exclusive] [level]
speaker output is enabled
function 0:
config base 0x0400
option 0x47 status 0x08
io 0x03f8-0x03ff [8bit]

>cardctl info
PRODID_1="Novatel Wireless"
PRODID_2="Merlin UMTS Modem"
PRODID_3="U630"
PRODID_4=""
MANFID=00a4,0276
FUNCID=2

setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ: 10
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

setserial -a /dev/ttyS1
/dev/ttyS1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

setserial -a /dev/ttyS2
/dev/ttyS2, Line 2, UART: unknown, Port: 0x03e8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

Thanks
SoftDev
 
Hi Tazz_Tux,

Apologies, the previous post did not include all the info when the PCMCIA service is re-started.

Mar 7 17:06:51 linux cardmgr[6074]: exiting
Mar 7 17:06:51 linux kernel: unloading Kernel Card Services
Mar 7 17:06:51 linux kernel: Linux Kernel Card Services
Mar 7 17:06:51 linux kernel: options: [pci] [cardbus] [pm]
Mar 7 17:06:51 linux kernel: ACPI: PCI interrupt 0000:02:06.0[A] -> GSI 10 (level, low) -> IRQ 10
Mar 7 17:06:51 linux kernel: Yenta: CardBus bridge found at 0000:02:06.0 [103c:099c]
Mar 7 17:06:51 linux kernel: Yenta: ISA IRQ mask 0x00f8, PCI irq 10
Mar 7 17:06:51 linux kernel: Socket status: 30000411
Mar 7 17:06:52 linux cardmgr[7577]: watching 1 socket
Mar 7 17:06:52 linux kernel: cs: IO port probe 0xc00-0xcff: excluding 0xcf8-0xcff
Mar 7 17:06:52 linux kernel: cs: IO port probe 0x820-0x8ff: clean.
Mar 7 17:06:52 linux kernel: cs: IO port probe 0x800-0x80f: clean.
Mar 7 17:06:52 linux kernel: cs: IO port probe 0x3e0-0x4ff: clean.
Mar 7 17:06:52 linux kernel: cs: IO port probe 0x100-0x3af: clean.
Mar 7 17:06:52 linux kernel: cs: IO port probe 0xa00-0xaff: clean.
Mar 7 17:06:52 linux kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Mar 7 17:06:52 linux cardmgr[7578]: socket 0: Serial or Modem
Mar 7 17:06:55 linux kernel: ieee80211_crypt_tkip: unsupported module, tainting kernel.
Mar 7 17:06:55 linux kernel: ieee80211_crypt: registered algorithm 'TKIP'
Mar 7 17:06:55 linux kernel: ieee80211_crypt_ccmp: unsupported module, tainting kernel.
Mar 7 17:06:55 linux kernel: ieee80211_crypt: registered algorithm 'CCMP'


Also uname info:
Linux linux 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux

Thanks
SoftDev
 
Hey SoftDev,

keep tailing that log and run the following command:

Code:
insmod serialcs

See if it then adds the serial port.

Laterz !

SoftDev said:
Hi Tazz_Tux,

Apologies, the previous post did not include all the info when the PCMCIA service is re-started.

Mar 7 17:06:51 linux cardmgr[6074]: exiting
<snip>
Mar 7 17:06:55 linux kernel: ieee80211_crypt: registered algorithm 'CCMP'


Also uname info:
Linux linux 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux

Thanks
SoftDev
 
Hi Tazz_Tux,

Should the command not be “insmod serial_cs”? I tried both anyway and both give an error “can’t read serial_cs: No such file or directory. I then tried to use insmod using the full path to serial_cs i.e. /lib/modules/……drivers/serial/serial_cs.ko. This returned another error “file exists” and the following message in the log “load_module: err 0xffffffef (don’t worry)”. A modprobe of serial_cs resulted in no response in the log and no response from modprobe.

I have also noticed that when I restart the laptop while the Novatel card is still in the slot, the following message is displayed “cardmgr – FATAL Module serial_cs in use modprobe status 1”.

???

Thanks for your help.
SoftDev
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X