LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2003, 06:23 PM   #1
Belize
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
Exclamation eth1 and loopback netmasks addresses match HELP


Hi I configured successfully my wireless lan card on red hat 9, it is activated but the internet still doesnt work. I typed ifconfig and I noticed that the eth1 ( wilress lan network interface ) and the loopback interface ( actually what is this for ? ) network masks are the same so I think this is the reason I still dont have internet. How can I change it ( else than netconfig, cause Im afraid I will override all settings that I have made till now ). Peace.
 
Old 10-04-2003, 10:01 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Netmask is the setting that says how "big" a particular network is. Now since your loopback adaptor and wireless card are on completely different networks their netmasks are irrevelant to each other. Loopback is on the 127.0.0.0/8 network, while your network card is on some other network (something that doesn't start with 127).

By the way, the loopback address is used for certain processes to communicate locally (just on your machine). It's impossible for anything outside your computer to connect to the loopback adaptor.

So as to why your connection isn't working, no one can know because you didn't include enough information. Are you sure your wireless card is eth1? Can you post the output from ifconfig -a? What is the IP and netmask of your gateway? Is your gateway a Wireless Access Point? Does your WAP have Wired Equivilant Protection enabled (WEP)? Does your WAP hand out IPs via DHCP? Is your wireless card configured for DHCP? What is the output of netstat -nra?

There is a lot more information you have to share before anyone can help you.
 
Old 10-05-2003, 06:47 AM   #3
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
Yo. Thats the info for my network interfaces
lo loopback IP 127.0.0.1 Netmask 255.0.0.0
Yes eth1 is wireless lan. IP 10.4.2.14 Netmask 255.0.0.0 (see, they match )
eth0 is LAN ( cable connecting 2 computers ) IP 192.168.20.4 Netmask 192.168.20.255
As you can see the problem is from the same netmasks for eth1 and lo. How can I change the lo netmask to 255.255.255.255 ? I think this will solve my problem.
 
Old 10-05-2003, 06:53 AM   #4
pnesbitt
LQ Newbie
 
Registered: Sep 2003
Location: UK - Hartlepool
Distribution: Mandrake 9.1
Posts: 15

Rep: Reputation: 0
your netmask on eth0 can not possibly be 192.168.20.255!
is that a typo?

your netmask is fine for loopback

next step check your subnet mask for eth0

Paul
 
Old 10-05-2003, 07:06 AM   #5
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
dude, the eth0 mask has nothing to do with my loopback and eth1 problems. I didnt type it wrong, it may not be working, havent tried this interface yet. Red Hat gave this netmask by default to my ethernet eth0 ( LAN ) interface.

And the problem is with loopback and eth1 ( wireless lan )`s netmasks matching I think.
 
Old 10-05-2003, 07:11 AM   #6
pnesbitt
LQ Newbie
 
Registered: Sep 2003
Location: UK - Hartlepool
Distribution: Mandrake 9.1
Posts: 15

Rep: Reputation: 0
Mate, you could have five eth cards all with different or the same IP ranges and all have the same mask it is only relevant to the card it is set on.

also if it gave you a netmask of 192.168.20.255 then it is absolutely the incorrect format for a SM, and is wihout question wrong!

which is your connection to the net?

Paul
 
Old 10-05-2003, 08:24 AM   #7
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
my connection to the internet is the wilreless lan eth1 device.

if its not the netmasks, what can it be ?
But I still have some feeling its from the netmasks that match
 
Old 10-05-2003, 08:25 AM   #8
pnesbitt
LQ Newbie
 
Registered: Sep 2003
Location: UK - Hartlepool
Distribution: Mandrake 9.1
Posts: 15

Rep: Reputation: 0
enter the route command and reply with the full results!

Paul
 
Old 10-05-2003, 12:37 PM   #9
Vraxx
LQ Newbie
 
Registered: Oct 2003
Location: Hawaii
Distribution: Debian, Mandrake, Redhat/Fedora
Posts: 13

Rep: Reputation: 0
That's definately a misinterp. The 192.168.1.x address with the .255 isn't the netmask that should be the broadcast address for a class-c subnet /24

Make sure you check the ifconfig data it goes:
Inet addr: <your ip> bcast: <broadcast address> Mask: <SM>

As for the IP address you're getting on the wireless that looks like it's off a NAT-router so it might be using the 10.0.0.0 reserved class-A address which is valid depending on your NAT/router.

Most of the LinkSys and NetGear's on the market use the 192.168.x.x address range though.

I'd also use iwconfig to make sure that you're actually attached to the Access Point you think you are.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 05:10 AM
Loopback IP addresses barkers Linux - Networking 7 04-07-2005 02:10 PM
Routing between eth1 and eth1:1 cli_man Linux - Networking 3 04-05-2004 11:54 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration