How to Use a second Ip address

I Have two static ip adresses, Im using 1 in my linux box, I also set the Ip fowarding and my win98 machine is working. But when I try to use the second static IP, My windows machine keep working but you cannot ping from outside, and keeps telling me that I have the Ip of the Linux Box.

Please Help.


omar007Asked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
Yeah that's what I thought I'd see. If you want Internet visibility for the windows box you aren't going to be able to do it this way with only two static IP's. You'll notice that ppp0 gets 209.91.193.65 as it's IP, which is correct. You can't then assign the same IP to eth0 unless you set the box up to do transparent bridging, which would prevent the Linux box from reaching the Internet, not what I think you have in mind.

There is a way to use both of the IP's. If you use ipfilters (http://cheops.anu.edu.au/~avalon/ip-filter.html) you can use the Linux box as an Internet gateway with one-to-one NAT. Your windows box would be in a private network "inside" the gateway and ipfilters gets configured to map the second IP to the inside address of the win box.
0
 
jlevieCommented:
How is the network arrainged? Are both systems connected to a hub that in turn connects to a cable modem, DSL modem, or ISDN router? You say you have two static IP's. Is that a netblock of for (i.e. a netmask of 255.255.255.252)?
0
 
jlevieCommented:
Sorry for the typo, the last query should read:

You say you have two static IP's. Is that a netblock of four (i.e. a netmask of 255.255.255.252)?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
omar007Author Commented:
Yes is a netblock of four, im using xxx.xx.193.64 as a network ip, and xxx.xx.93.67 as broadcast ip.

The linux box is using xxx.xx.193.65
and the ip i want to use on windows machine is xxx.xx.193.66 using the linux ip as a gateway an 255.255.255.252 as a netmask.
0
 
jlevieCommented:
When you boring up the ISDN connection, what does the output of "ifconfig -a" look like?
0
 
omar007Author Commented:
[root@linux /sbin]# ./ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:C0:C6:D2:0D  
          inet addr:209.91.193.65  Bcast:209.91.193.67  Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16583 errors:0 dropped:0 overruns:0 carrier:0
          collisions:8 txqueuelen:100
          Interrupt:10 Base address:0xd000

eth0:0    Link encap:Ethernet  HWaddr 00:00:C0:C6:D2:0D  
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:209.91.193.65  P-t-P:209.91.199.11  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:6343 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
0
 
omar007Author Commented:
Thank You!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.