Solved

How to Use a second Ip address

Posted on 2000-03-18
7
217 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now