Solved

How to Use a second Ip address

Posted on 2000-03-18
7
218 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 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