LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2009, 05:43 AM   #1
ishwar001
LQ Newbie
 
Registered: Apr 2009
Distribution: ubuntu interpid ib
Posts: 3

Rep: Reputation: 0
Exclamation Gadmin -DHCPD settings 4 home network help


Hello,

I am using ubuntu interpid ibex on my desktop, which gets the internet from a wired router (ethernet),
I would like to create a wireless home network btw other wifi-comps (MAC osx and win xp), using my new wireless usb adaptor! which is working in ubuntu - i could see other available computers etc..
so far i created a network profile with wap security etc.. and i am able to see that network on other machines..
My knowledge on networking is very limitted - esp with iptable, ip forwarding etc..

problems! how to share my internet using this connection
after reading a lot on the net - i found GADMIN -DHCPD network GUI admin interface, which is installed has anyone got any idea how to set it up!
i have already tried many different forums but all in vein!

main internet connection eth0

my wireless network is wlan0

thanx for any reply ( i have thought about a wireless router but would like to make it work so that when i got guests they have the benifit of using an autheticated network or share my computer files in a controlled way )

cheers
ishwar
 
Old 04-19-2009, 08:40 AM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
From what I understand, you already have the wireless part where you want it to be.
You want to share your internet connection, but don't know how.

Basically, you want to make your computer a router.
I googled for ubuntu router, and came up with this:
http://ubuntuforums.org/showthread.php?t=119787
and this:
http://ubuntuforums.org/showthread.php?t=376283

These guides are over 2 and 3 years old, but I think the basic ideas are still the same.

About that GADMIN tool you are talking about:
It seems like a GUI frontend to the config files (there are examples for the files in the guides above).
What do you want to configure about it?
Do you want advise about how to configure your DHCP server?

It is really unclear what you mean with your question. Maybe that's the reason you don't get many answers.

Last edited by janhe; 04-19-2009 at 08:41 AM.
 
Old 04-19-2009, 09:36 AM   #3
ishwar001
LQ Newbie
 
Registered: Apr 2009
Distribution: ubuntu interpid ib
Posts: 3

Original Poster
Rep: Reputation: 0
Exclamation hi thx for the reply

Quote:
Originally Posted by janhe View Post
From what I understand, you already have the wireless part where you want it to be.
You want to share your internet connection, but don't know how.

Basically, you want to make your computer a router.
I googled for ubuntu router, and came up with this:
http://ubuntuforums.org/showthread.php?t=119787
and this:
http://ubuntuforums.org/showthread.php?t=376283

These guides are over 2 and 3 years old, but I think the basic ideas are still the same.

About that GADMIN tool you are talking about:
It seems like a GUI frontend to the config files (there are examples for the files in the guides above).
What do you want to configure about it?
Do you want advise about how to configure your DHCP server?

It is really unclear what you mean with your question. Maybe that's the reason you don't get many answers.

I have my internet to the ubuntu via a router (wired)

i bought a new wireless usb adaptor in a hope to create a home network with my other laptop using the wireless card. the purpose is to share the internet using this wireless network.

now i installed avahi - again i dont know how to set it up!
i installed gadmin-dhcpd dont know how to set it up.

output from ifconfig if this is of any help
eth0 Link encap:Ethernet HWaddr 00:06:5b:13:5e:28
inet addr:192.168.123.115 Bcast:192.168.123.255 Mask:255.255.255.0
inet6 addr: fe80::206:5bff:fe13:5e28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57745 errors:0 dropped:0 overruns:0 frame:0
TX packets:54515 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49012814 (49.0 MB) TX bytes:9669056 (9.6 MB)
Interrupt:11 Base address:0x2c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:358 errors:0 dropped:0 overruns:0 frame:0
TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25655 (25.6 KB) TX bytes:25655 (25.6 KB)

pan0 Link encap:Ethernet HWaddr 6e:a5:e7:8d:da:74
inet6 addr: fe80::6ca5:e7ff:fe8d:da74/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:8202 (8.2 KB)

pan0:avahi Link encap:Ethernet HWaddr 6e:a5:e7:8d:da:74
inet addr:169.254.9.199 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

wlan0 Link encap:Ethernet HWaddr 00:0e:2e:f4:cd:26
inet6 addr: fe80::20e:2eff:fef4:cd26/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27968 (27.9 KB) TX bytes:50388 (50.3 KB)

wlan0:avahi Link encap:Ethernet HWaddr 00:0e:2e:f4:cd:26
inet addr:169.254.7.57 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1

wmaster0 Link encap:UNSPEC HWaddr 00-0E-2E-F4-CD-26-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
The terms i dont understand are:
On the scope tab - which network card to mention - etho or wlan0
on the network address - should give the ip address which i got from the isp or the linux box's assinged ip , i understood that the subnet mask is 255.255.255.0 but on the router its 255.255.252.0 , which one to choose.

i guess i have a long way to go! pls help me with that ..

thanx again

ishwar
 
Old 04-20-2009, 03:15 PM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
first: please put \[code\] and [/code] (without the "\") around your text when you post the output of commands (like ifconfig)

second: did you read the links I provided to you? Was there anything usefull in them? (NM, read through to the bottom of my post)

third: I think I'm beginning to understand what you might need.

Correct me if I'm wrong:

- You have a router which is connected to the internet.
- The router is connected to the ubuntu box through a wired network cable.
- The router gives the ubuntu box a IP in the 192.168.123.0/24 network (/24 means the netmask is 255.255.255.0)
- The ubuntu box is connected to other computers through the wireless.
- The ubuntu box and the other computers can already communicate with each other.
- You want to let the other computers to access the internet through your ubuntu box (thus, over the wireless)

fourth:

As far as I know, you cannot use avahi if you want to let the other computers access the internet.
I recommend you use a static IP on your wlan0 interface of your ubuntu box, and configure a dhcp server on the ubuntu box. GADMIN-DHCPD is a graphical tool that can help you with configuring a dhcp server.

I have never used GADMIN-DHCPD, but I have found a screenshot of it.

A dhcp server is a program on your ubuntu box that can hand out IP addresses to other computers. In this case you want it to hand out IP addresses to computers connected to wlan0. So you mention wlan0 in your scopes tab.

The network address is a special IP address which defines from which range of IP addresses the dhcp server can give the computer an IP address.
You can choose anything from the so-called "private network" addresses. I recommend 192.168.124.0 with subnet mask 255.255.255.0

You cannot give the static IP of your wlan0 interface to another computer, so you have to delete it from the shared ranges.
I recommend you give wlan0 the IP 192.168.124.1, and thus delete the range from 192.168.124.1 to 192.168.124.1

To configure a static IP on your wireless interface (wlan0, not eth0) follow this guide (second solution may be the easiest for you): http://linhost.info/2008/11/how-to-s...on-ubuntu-810/
the MAC address is: 00:0e:2e:f4:cd:26 (got that from the ifconfig output you posted)
I recommend you give it the IP address 192.168.124.1 netmask 255.255.255.0, leave gateway empty.

That should take care of the GADMIN-DHCPD issue. You should still be able to connect to the windows machines and vice versa. They still cannot connect to the internet, though.
If you doubt things are working correctly, post the output from ifconfig again, and look up the IP address on the Mac or WinXP computer. (also, remember my first remark!)

I guess you cannot simply follow one of the guides I gave you before, since that would put you in a "double nat" situation. It is complicated to explain, but it would mean things got way too hard to configure.

Before I know if I can help you: Can you configure the "IP routing" table on your internet router? It is called "IP routing" on my ISP router, it may have a different name on yours.
When you are in doubt, ask me if a certain configuration option on your router could be what I mean.

That's allot to read, I hope this helps (a bit).

Last edited by janhe; 04-20-2009 at 03:31 PM.
 
Old 04-20-2009, 04:06 PM   #5
ishwar001
LQ Newbie
 
Registered: Apr 2009
Distribution: ubuntu interpid ib
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, i m very greatful for you detailed explanation.

The week has started, i dont want to mess up my current working net!! i m going to start this again in two weeks, i got an exame coming up!!

Thank you again for your response, i will update u with those above mentioned changes..
hopefull from my network computers..

cheers

ishwar
 
  


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 configure Gadmin squid 0.1.0 perfectpol7 Linux - Newbie 11 02-06-2009 07:24 AM
People with a home network and dhcpd 95se Linux - Networking 0 04-13-2004 06:40 PM
dhcpd, ethernet card settings wincen Linux - Networking 2 08-26-2003 05:14 PM
Dhcpd - IP range settings problem Wild-A Linux - Networking 5 01-14-2003 09:26 AM
Dhcpd - IP range settings problem Wild-A Linux - Software 1 01-13-2003 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

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