dulem
Technical User
- Jul 10, 2002
- 39
Hi Guys,
I'm trying to configure a Linux RH 7.3 server to act as router for policy based routing.
Here is my problem.
This server have to help me during IP migration. I'm in proces of moving IPs from one ISP to other and I want to keep all IPs (old and new) for a short time until DNS propagation is not finished.
I have from both ISPs ethetnet cable suplied and now they are connected to same switch.
Both providers allow only their IPs traffic.
I have on servers multiple IPs (old and new) and these servers are accessible only on one IP.
I'm trying to configure one Linux server to act as default gateway and depends on source IP to forward packets to providers. This server have one NIC with addresses in both ranges.
It should be very simply according iproute2 documentation but....
Here is extrat from server:
[root@rh73 net]# ip rule ls
0: from all lookup local
32765: from x.x.x.x/24 lookup Test
32766: from all lookup main
32767: from all lookup 253
[root@rh73 net]# ip route list table Test
default via x.x.x.254 dev eth0 proto static
[root@rh73 net]# ip route list
x.x.x.0/24 dev eth0 proto kernel scope link src x.x.x.73
y.y.y.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via y.y.y.y dev eth0
x.x.x.x is new IP range
y.y.y.y is old IP range
Any suggestion.
Dule
I'm trying to configure a Linux RH 7.3 server to act as router for policy based routing.
Here is my problem.
This server have to help me during IP migration. I'm in proces of moving IPs from one ISP to other and I want to keep all IPs (old and new) for a short time until DNS propagation is not finished.
I have from both ISPs ethetnet cable suplied and now they are connected to same switch.
Both providers allow only their IPs traffic.
I have on servers multiple IPs (old and new) and these servers are accessible only on one IP.
I'm trying to configure one Linux server to act as default gateway and depends on source IP to forward packets to providers. This server have one NIC with addresses in both ranges.
It should be very simply according iproute2 documentation but....
Here is extrat from server:
[root@rh73 net]# ip rule ls
0: from all lookup local
32765: from x.x.x.x/24 lookup Test
32766: from all lookup main
32767: from all lookup 253
[root@rh73 net]# ip route list table Test
default via x.x.x.254 dev eth0 proto static
[root@rh73 net]# ip route list
x.x.x.0/24 dev eth0 proto kernel scope link src x.x.x.73
y.y.y.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via y.y.y.y dev eth0
x.x.x.x is new IP range
y.y.y.y is old IP range
Any suggestion.
Dule