Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

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.


0
omar007
Asked:
omar007
  • 4
  • 3
1 Solution
 
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
 
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
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
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
 
jlevieCommented:
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
 
omar007Author Commented:
Thank You!!!!
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now