121bb [Solved] My Connection [ADSL] always lost - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old May 19th, 2010, 19:56
ohdediku ohdediku is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default My Connection [ADSL] always lost

hai all,
I am a newbie in freebsd
I had a problem when want to connect ADSL to freebsd,
my connection always interrupted ...
problem solved when I try this command repeatedly

# ifconfig re0 down

continue

# ifconfig re0 up

help me..

Last edited by DutchDaemon; May 19th, 2010 at 23:41.
Reply With Quote
  #2  
Old May 19th, 2010, 20:28
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Check your network cable connectors: are they making solid contact? Are the network cables free of pet chewings, cuts, and crimps? Always check the easy stuff first!

Otherwise, it could also be a problem with your Realtek card (they're not great) or something to do with the DSL modem. You can collect some useful information:

Is this a notebook or desktop? What model of DSL modem do you have?

Which version of Realtek card you have: # pciconf -lv | grep -B1 -A2 -i network

How it is set up in /etc/rc.conf:# grep ifconfig /etc/rc.conf

What ifconfig thinks:# ifconfig re0
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
ohdediku (May 19th, 2010)
  #3  
Old May 19th, 2010, 21:08
ohdediku ohdediku is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by wblock View Post
Check your network cable connectors: are they making solid contact? Are the network cables free of pet chewings, cuts, and crimps? Always check the easy stuff first!

Otherwise, it could also be a problem with your Realtek card (they're not great) or something to do with the DSL modem. You can collect some useful information:

Is this a notebook or desktop? What model of DSL modem do you have?

Which version of Realtek card you have: # pciconf -lv | grep -B1 -A2 -i network

How it is set up in /etc/rc.conf:# grep ifconfig /etc/rc.conf

What ifconfig thinks:# ifconfig re0
Check your network cable connectors??
i think not a problem, because in ubuntu linux fine.

Is this a notebook or desktop?
i use a PC.. dualboot ubuntu-lucid lyn and freebsd-8.0

Code:
rootBSD# pciconf -lv | grep -B1 -A2 -i network
    device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111)'
    class      = network
    subclass   = ethernet
rootBSD# grep ifconfig /etc/rc.conf
ifconfig_re0="inet 192.168.1.103  netmask 255.255.255.0"
rootBSD# ifconfig re0
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
	ether 00:e0:4d:4f:7c:38
	media: Ethernet autoselect (10baseT/UTP <half-duplex>)
	status: no carrier


**i'm sorry, my english languange very bad... :D
Reply With Quote
  #4  
Old May 20th, 2010, 01:11
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Quote:
Originally Posted by ohdediku View Post
Check your network cable connectors??
i think not a problem, because in ubuntu linux fine.
Okay, run # ifconfig eth0 on Ubuntu and compare. Does it also come up as 10baseTX and half-duplex?

Oh, and what version of FreeBSD are you running?
Reply With Quote
  #5  
Old May 20th, 2010, 05:09
ohdediku ohdediku is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Code:
#ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:e0:4d:4f:7c:38  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4dff:fe4f:7c38/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:98243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90599 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:104842282 (104.8 MB)  TX bytes:11090471 (11.0 MB)
          Interrupt:25 Base address:0x6000

** FreeBSD 8.0-RELEASE

Last edited by DutchDaemon; May 20th, 2010 at 11:35. Reason: use [code] tags!
Reply With Quote
  #6  
Old May 20th, 2010, 05:29
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Doh. Apparently you have to use # ethtool eth0on Linux.

The reason I ask is that I'm think an autonegotiation error. But maybe that's not it. I know there have been changes to the re driver since FreeBSD-8.0; you could update to 8-stable.
Reply With Quote
  #7  
Old May 20th, 2010, 05:38
ohdediku ohdediku is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Code:
ohdediku@linuxer:~$ sudo ethtool eth0
Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Speed: 100Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000033 (51)
	Link detected: yes

Last edited by DutchDaemon; May 20th, 2010 at 11:34. Reason: use [code] tags!
Reply With Quote
  #8  
Old May 20th, 2010, 15:37
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Under Ubuntu, it goes to 100Mb and full duplex. You can try manually setting that on FreeBSD with # ifconfig re0 media 100baseTX mediaopt full-duplex
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
ohdediku (May 20th, 2010)
  #9  
Old May 20th, 2010, 17:50
ohdediku ohdediku is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by wblock View Post
Under Ubuntu, it goes to 100Mb and full duplex. You can try manually setting that on FreeBSD with # ifconfig re0 media 100baseTX mediaopt full-duplex
Voila.... problem solved...

thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost internet connection nu2fbsd Networking 1 April 12th, 2010 07:28
[Solved] PF, ALTQ and shaping NATed ADSL KitsuneKaze Firewalls 1 December 30th, 2009 12:08
[Solved] amavisd: lost connection ... while sending end of data hansaplast Web & Network Services 13 September 18th, 2009 06:35
pppoe+adsl bridge+freebsd. javid Networking 3 June 9th, 2009 12:39
ADSL - dial up immortal Networking 10 April 19th, 2009 00:26


All times are GMT +1. The time now is 13:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0