Questions tagged [ip-aliasing]
38 questions
16
votes
6 answers
When IP aliasing how does the OS determine which IP address will be used as source for outbound TCP/IP connections?
I have a server running Ubuntu Server with four IP addresses aliased on a single NIC.
eth0 192.168.1.100
eth0:0 192.168.1.101
eth0:1 192.168.1.102
eth0:2 192.168.1.103
(Using 192.168.x.x for sake of example, assume these are…
Joe Holloway
- 1,829
- 3
- 19
- 17
13
votes
2 answers
Persist IP address alias across reboots in CentOS/RHEL 6 using "ip" command
I've always used the ifcfg-eth0:1 alias files to create additional addresses. However, in recent rhel documentation, it states that:
As the ip command of the iproute package now supports assigning multiple address to the same interface it is no…
prl77
- 410
- 5
- 17
10
votes
1 answer
iptables not allowing mysql connections to aliased ips?
I have a fairly simple iptables firewall on a server that provides MySQL services, but iptables seems to be giving me very inconsistent results.
The default policy on the script is as follows:
iptables -P INPUT DROP
I can then make MySQL public…
Curtis
- 503
- 2
- 9
6
votes
1 answer
FreeBSD IP aliases in different subnets and default outgoing IP address
I have a FreeBSD VPS that until recently had assigned 3 public ip addresses in a /29 subnet. When making outgoing connections, the IP address used was always the non aliased one ".20", however now I have added another block of 3 ip addresses in a…
Tamas
- 61
- 1
- 2
4
votes
1 answer
Add an alias to a pfSense interface?
Note: maybe the "Background" and "Plan" are not really necessary; feel free to skip to the "Problem" immediately...
Background
We have recently migrated a bunch of servers from one subnet into another. They used to have the IP addresses…
AnoE
- 163
- 1
- 7
4
votes
1 answer
Linux: ip alias versus iproute
When setting up a web server with multiple IP-based virtual hosts, I've always used the eth0:x alias notation in /etc/network/interfaces. The wiki on my hosting provider states however that this is deprecated and one should now use the iproute…
Frank Brenner
- 321
- 1
- 3
- 9
2
votes
2 answers
Linux IP Alias not working - Amazon EC2
I can't seem to figure out this IP aliasing on Amazon EC2. I know it should be straight fwd though.
In summary I have two questions (my scenario details follows after questions), in priority:
How to get the routing working via the CLI…
0v3rst33r
- 73
- 1
- 7
2
votes
5 answers
Creating ip alias on bonded interface ie. bond0:1
System: HP Proliant DL360 G5 running CentOS 5.4
Bonded interface is working fine for a long time. I just went to add an alias the way I always have on a regular interface, and on first check it works (pinging on the local box) but it is not…
bobothechimp
1
vote
1 answer
Using aliased bond interface on host by an lxc container
As the title says, how do I edit the lxc container's configuration to use the aliased bond0 interface on the host? This is what I have in the /etc/network/interfaces file now:
# The loopback network interface
auto lo
iface lo inet loopback
# The…
antisa
- 111
- 2
1
vote
1 answer
What should i use instead of eth0:1 if it is deprecated
usually i create /etc/sysconfig/network-scripts/ifcfg-eth0:1
and /etc/sysconfig/network-scripts/ifcfg-eth0:2 but i seen in internet that it is deprecated using eth0 :1
so what can i use to the VPS use the additional IPs?
usually my files…
DiogoSaraiva
- 389
- 3
- 16
1
vote
0 answers
How to throttle bandwidth for ipalias in Linux
I want to slow the connection between some nodes to a virtual node inside one machine. (different nodes use different ip with ip-alias or with different ports)
In Linux, is it possible to slow the bandwidth for a specific IP in ipalias? Or for a…
Algorithman
- 111
- 2
1
vote
1 answer
Linux IP Alias of different pool becomes primary
I have two different Public IP addresses of two different subnets :
1) 206.190.147.100
2) 198.105.208.3
I am using CentOS 6.5 and my configs are as follows :
root> cat…
user1066991
- 471
- 2
- 5
- 6
1
vote
3 answers
ip alias lost when dhcp renews lease
I have a server that I have setup to use dhcp for the main connection information and have an alias set up that my router forwards ports to.
Everytime (I think this is what is happening) dhcp renews the lease. I lose the alias ip.
This is on a…
Tanj
- 163
- 1
- 1
- 8
1
vote
2 answers
Router see IP alias?
On my Win7 host machine, I have two VMs which I test network/server stuff.
On one machine I created an IP alias using the following commands from http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html#NETWORKALIASING (edit to fit my…
Jay Adams
- 11
- 3
1
vote
4 answers
DNS or Hosts help. Can I alias this IP address & port to something more friendly?
I have a 2003 Server VM named Gemini, it has 2 IP addresses 10.0.0.25 & 10.0.0.99.
I have a website on that box that listens on 10.0.0.99:81. Is there anyway I can alias 10.0.0.99:81 to dev.gemini. So in a browser on the network, users can type…
Hcabnettek
- 111
- 1
- 3