How to put 2 IPs on a single NIC


 
Thread Tools Search this Thread
Special Forums IP Networking How to put 2 IPs on a single NIC
# 1  
Old 04-05-2005
How to put 2 IPs on a single NIC

Hi !
I've just got a real IP number for my personal computer. Until now, the IP was masked (NAT'ed). Anyway, the problem is like this :
I'm on a LAN with about 100 computers and I asked the admin to give me a real IP so that I can connect to my computer from my office. He gived that IP to me, but the DNS server of the network doesn't have a real IP, so somehow I have to be on the same LAN (from the IP point of view) to can access the DNS server, and I have to be on the other network, beacause the new IP belongs to another network... The LAN has the IP class like 172.17.xx.xx and the real IP is 195.225.xx.xx. So, how may I set this up ?
I tryed with to make an alias on my /etc/rc.conf file (I use FreeBSD 5.3-RELEASE) but it doesn't seem to work... I don't have access to anything... Am I missing something ?
Can anyone, please, give me an example of how should I set it up ?
Thanks.
Bye !
# 2  
Old 04-05-2005
Hi !
Me again. I've gote a wrong gateway address... I solved out, sorry for disturbing...
Bye !
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing single path NIC to a teamed connection in same subnet

Dear all, I have a remote CentOS7 server that has two network cards. Each card has four ports and port one of card one was defined with the IP address assigned to the server. So far, so good and it's been working for over a year. We have now got cables sorted out so there are four paths... (4 Replies)
Discussion started by: rbatte1
4 Replies

2. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

Hello Admins, My ask is how can I add two different subnet IPs to same box with two different gateways? The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware. How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

3. Red Hat

I want to tune NIC's rps, rfs and xps value. which NIC device should I modify.

Dear All I want tune my NIC's rps, rfs and xps value. In my system I have two NIC (eth0, eth1) and I have a bond0 ( eth0, eth1). Here is the question? Which device should I modify ? eth0 and eth1? or just modify bond0 or modify all device (eth0, eth1, bond0) Any advice is welcome.... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

4. IP Networking

squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy. My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)? Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies

5. Solaris

x86 Solaris 10 nic driver added but not attached. NIC is not detected.

I couldn't install my nic in solaris 10. I compiled and added the driver but failed to attach the driver and ifconfig output shows only loopback dev. Please see the following output and tell me whether my nic has been detected and why the driver failed to attach? My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies

6. Programming

Macro to put single quotes around character

Dear Mates, I am trying to write a macro to replace with its arguments with singles quotes around each argument. #define DECR(a,b,c,d,e) decr('a','b','c','d','e') if the usage is DECR(k,e,y,s,\0) I want it to be replaced with the following decr('k','e','y','s','\0') However it... (2 Replies)
Discussion started by: tamil.pamaran
2 Replies

7. SCO

cannot put SCO 5.0.6 in single user mode

hi I have SCO 5.0.6 and if I type Ctrl-D, the system will NOT enter single user mode, it goes into multi-user mode. If I use the init 1 command, I get right back into the cycle ... an I'm at the Ctrl-D prompt again. (2 Replies)
Discussion started by: ccc
2 Replies

8. Shell Programming and Scripting

How to put multiple logs in single line?

Hi, I have a script which generates a log file on demand by redirecting the output to a log file. But the requirement is : echo A echo B echo C should print A B C not like A B C and this has to be handled in script only..not in the shell level (while running the script only) .... (5 Replies)
Discussion started by: bhaskar_m
5 Replies

9. IP Networking

Can i put 2 ip address in one nic?

I have a SCO OpenServer 5.0.5 and my cuestion is can i have 2 ip address in one nic?, how?. Thanks. (1 Reply)
Discussion started by: dvl
1 Replies
Login or Register to Ask a Question