Solved

How to Use a second Ip address

Posted on 2000-03-18
7
219 Views
Last Modified: 2010-03-18
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.


0
Comment
Question by:omar007
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2632596
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
 
LVL 40

Expert Comment

by:jlevie
ID: 2632598
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
 

Author Comment

by:omar007
ID: 2633039
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 40

Expert Comment

by:jlevie
ID: 2633255
When you boring up the ISDN connection, what does the output of "ifconfig -a" look like?
0
 

Author Comment

by:omar007
ID: 2633323
[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
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 2633373
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
 

Author Comment

by:omar007
ID: 2633394
Thank You!!!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 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