LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2004, 02:10 AM   #1
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Rep: Reputation: 15
LAN with static IP addresses and shared internet connection #2


Hi

I know i should not post my question in two forums but after a little bit of more thought i feel like these questions fits better in the Network forum than in Mandrake forum

I have a very small LAN with a setup like this: My LAN

After an Friday evening spent in diffrent wizards (Drakconnect, Drakegw) in Mandrake 9.1 i finaly got this configuration to work (i think i had the firewall disabled at the moment though).

There was no problem resciveing IP address in my Palm Tungsten C from my Mandrake box who acted as a DHCP server. I was actually out "surfing" with my Palm for a while, the Mandrake box got rebooted a couple of times. But it still worked like a charm.

I turned of my pc and pulled the chord out from my access point before i got to sleep. The Saturday after that i could not connect to my access point anymore... i have no idea why i belive the configuration is the same.

I can Ping my accesspoint.

The SliMP3 still rescives IP address from the DHCP server (or is it just using a old one..??). But atleast it still workes.

My palm rescives a IP if i turn on the DHCP server in my access point, but still no connection to internet.

What i would like to do is:

1. Configure a static LAN. Were my Slim3, accesspoint, Palm and laptop has static addresses. I have no need for a DHCP LAN.

2. Make sure that my Palm and Laptop can access the Internet thru the firewall.

3. If i turn on the DHCP function on my access point, will it assign IP addresses to the "wired" side of my LAN or just the "wireless" side?.

I have tried using Webmin, netconf etc to configure my network but i have no luck with that. I am guessing that there are mandrake scripts etc. that are causing me problems. I would like to know how this workes without using wizards etc.

Is there any Mandrake guru who could point me in the right direction, configuring my LAN and firewall without wizards? It would be sweet to have a clean restart.

BTW My internet connection for my Mandrake box is working fine.
Mandrake 9.1
Two network cards
Telia ADSL (ISP)

Regards Klas
 
Old 01-20-2004, 09:15 AM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
I think if you just start assigning static IP addresses to your components they'll stop requesting an IP address from the DHCP server, but you could end up with a conflict if you still use dhcp on the system for the laptop and palm. You'd have to tell the dhcp server that those static ip addresses are taken. does the WiFi access point assign ip addresses?
 
Old 01-20-2004, 10:58 AM   #3
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Ok i will try assigning static addresses to my components (even to palm and laptop... no need for DHCP).

Is that enough..? No configuration needed on my Mandrake box? (Other then removing the DHCP server... to avoid possible conflicts)

The DHCP server in my access point is disabled.

What actions do i have to take to open the firewall so i can reach internet from my palm and laptop?

Regarding question #3, i got the answer from D-link that the access point only assigns IP adresses on the wireless side of the LAN.

Thanks for your reply Vincent V
Klas
 
Old 01-20-2004, 07:17 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
There's a few good iptables tutorials available around here. Won't be too hard. You'll just have to let the Mandrake box's internal NIC forward the different IPs to its external NIC. I don't use forwarding with my iptables at this point so I don't want to make a mistake helping you.
I find this web site very helpful as it gives good examples of usage:
www.linux-tech.com/docs/iptables-tutorial.html

good luck and let us know how it goes.
 
Old 01-22-2004, 01:04 AM   #5
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks Vincent V, i just gonna find a printer to print the tutorial (at work ofcourse).

Here is the deal now i have assigned static IP addresses to my devices (except from eth1 wich needs to be DHCP to rescive IP from my ISP). I can ping all my devices from my Mandrake box, but i cant get out on internet from my Palm and laptop.

I have tried to disable the firewall and the DHCP server but still no luck (that excludes the firewall as a problem at the moment doesnt it?).

Could it be some routing thing in my mandrake box that doesnt work?
Which DNS server should i assign to my Palm, a local or the one i get from ISP?

Regards
Klas
 
Old 01-22-2004, 04:24 AM   #6
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Set the mandrake box IP on the LAN side as the gateway if possible. Also, use the same DNS as the Mandrake box has on its internet side.

Last edited by Vincent_Vega; 01-22-2004 at 04:27 AM.
 
Old 01-22-2004, 06:09 AM   #7
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
VIncent V

I already have 192.168.1.1 (atleast i think so, is there any good way to verify it) as gateway and my ISP DNS on my Palm, i still dont seem to get thrue. Strange... what is stopping me?

If i understand things right my ISP shouldnt "see" anything else then my Mandrake Boxs "ID" even if i use my Palm "thrue" it if everything workes correctly on my box?

Regards
Klas
 
Old 01-22-2004, 12:35 PM   #8
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
OK

I seem to have a working connection at the moment (i am able to surf with my Palm... kind of cool).

What did i do then? (sorry that the text in the pics are in Swedish..)

1. I went thrue the Drakgw wizard for the thousend time this week, to share a internet connection. Picture 1 Picture 2
i am not actually sure what it does but i belive it configures the firewall, setting up the DHCP server amongst things (would be intresting to know in detail... i have to go thrue the script some time)

2. The firewall gets enabled after the wizard. Picture 3

3. Then i used Webmin to configure the DHCP server adding my devices as static IP's. Picture 4 Picture 5 Picture 6 .

I also added an alternative DNS in my Palm.

Lets see tomorrow if it workes then also, not so sure anymore

Thanks for your help
Klas
 
Old 01-22-2004, 11:38 PM   #9
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
You're right - the ISP only sees packets from the Mandrake box that has the job of forwarding everything around your LAN.
Those configuration tools are good for helping you get setup and later you can figure out what exactly was done for you!
Surfing with your palm - that is cool!!!
 
Old 01-23-2004, 11:08 AM   #10
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Hi again

After the Mandrake box have been turned off all night i had problems connecting to my LAN again with my Palm even though i had changed nothing, after some "fiddeling" with the wizardes both in my Palm and my Mandrake box i got it to work again (even though i changed nothing). And once connected i had no problems getting out on the net. I am gonna try to find the source to these problems this weekend.

I also managed to sync my Palm Tungsten C wireless with J-Pilot , not to any extreme speed but anyway...
This is what i did:

1. First of all i had a J-pilot installation that worked with the USB cradle sync. (...you know the drill push the sync button in J-pilot.... wait a while... then push the Hot Sync button on the cradle). I use the standard J-pilot that comes with Mandrake 9.1. Version 0.99.5.

2. Then i opened the settings box in J-Pilot then i changed the seriall port to "net:192.168.1.1" wich is the IP to the box wich J-pilot is running on (...my Mandrake box...). And changed the transmitting speed to the maximum (wich isnt that fast...but so cool anyway).

3. Then i opend "HotSync" in my Palm and changed from "Local" to "Network" and changed the sync pc to 192.168.1.1 (wich is again the pc wich J-Pilot is running on).

4. Then i open the firewall for syncing. TCP port 14238. Firewall

5. Then press sync in J-Pilot, and after that sync in my Palm.

Voila

Regards
Klas
 
Old 01-26-2004, 10:43 AM   #11
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Thanks for that!!! Pretty cool!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
shared internet connection zoffmann Linux - Networking 2 06-15-2005 04:51 PM
shared internet connection w/out router 4of11 Linux - Networking 2 08-09-2004 12:47 PM
Cant get internet of shared XP connection... Dover1123 Linux - Networking 5 07-29-2004 07:07 PM
LAN with static IP addresses and shared internet connection Klas Mandriva 1 01-21-2004 07:14 PM

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

All times are GMT -5. The time now is 01:12 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