Solved

Ip masquewrading ip address questions

Posted on 1997-09-02
2
177 Views
Last Modified: 2010-05-18
I have a few questions about ip masquerading, and which ip addresses should be used.

I am looking through the Linux IP Masq mini HOWTO, and I don't really understand what the ip addresses should be set as. Although you obviously need to have a net connection (and registered IP address) to use this, and it should be on the linux box, I was wondering what should be set where. The HOWTO says to set the ip address of the linux box to 192.168.1.1... but if that is the ip address, how can it get on the net. My assigned ip should be 24.3.10.23.

In short, fill in these blanks: I put in what I have currently, which does not work.
Things to know:

Assigned ip: 24.3.10.23
Assigned gateway: 24.3.10.1
Assigned DNS: 24.3.0.33

Linux ip: <24.3.10.23>
Linux gateway: <24.3.10.1>
Linux DNS: <24.3.0.33>

Win95 box ip: <192.168.1.2>
Win95 box gateway: <24.3.10.23>
Win95 box DNS: <24.3.0.33>

Thats what I have now... is that incorrect? I cant ping the linux box.
0
Comment
Question by:edskee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
sauron earned 100 total points
ID: 1586398
If you think about it, an IP masquerading box is, by definition, a router. A router has at least two interfaces, so you will (probably) have an ethernet card in your masquerading machine, which has the 192.168.1.1 ip address attached to it. Your assigned ip address will be the address of the internet-facing interface, usually a PPP-link.

So, linux machine:-

PPP interface IP: 24.3.10.23
Ethernet IP: 192.168.1.1
Nameserver: 24.3.0.33
Gateway: 24.3.10.1

Win95 box:-

Ethernet IP: 192.168.1.2
Nameserver: 24.3.0.33
Gateway: 192.168.1.1 ********IMPORTANT********

On your linux box, configure it's IP address as 192.168.1.1

In the file /etc/sysconfig/network, you might have something like:-
NETWORKING=yes
HOSTNAME=your.hostname
DOMAINNAME=your.domainname
GATEWAY=24.3.10.1
GATEWAYDEV=ppp0


and in /etc/sysconfig/network-scripts/ifcfg-eth0, you might have:-

DEVICE=eth0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes

Of course, I'm assuming your connection to the internet is a PPP link here, but the principles are the same, even if it isn't. The file locations are right for RedHat, I'm not sure about other distributions...
0
 
LVL 2

Author Comment

by:edskee
ID: 1586399
Damn. I igured this out myselkf, and was coming on to delete my question and get my points refunded. You beat me to it. I'm up and running, thanks for the help anyway though :)

0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question