network routing

C

cdcon

Guest
Hi,
I have 2 servers running on rhel 6.3, each server has one physical NIC(eth0) and one virtual interface(eth0.5).

Server A:
eth0 = 16.41.9.171 Mask = 255.255.248.0
eth0.5 = 192.168.2.101 Mask = 255.255.255.0

Server B:
eth0 = 16.41.9.172 Mask = 255.255.248.0
eth0.5 = 192.168.2.102 Mask = 255.255.255.0

I can't ping Server A's Virtual IP from Server B, and also couldn't ping Server B's Virtual IP from Server A, but I do able to ping eth0 address from each other.

I have a new application would be install into this environment, and due to its requirement the virtual interface has to be different network with the physical NIC, but the virtual interface has be pingable each other by both servers.

Appreciate if anyone has any suggestion on how to configure this?

Thanks
 


I am new member also,Today i have learned a lot about route.Thank you upstairs.
 
Hi

Im the bigest noob...:p

If you can please give me a quick guide on how to add rules/open ports in Red Hat Enterprise 6.

This is the command i use to check rules:

iptables -t nat -L -n -v

These are the current rules I have at the moment:

[root@root ~]# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 296 packets, 17884 bytes)
pkts bytes target prot opt in out source destination
1 48 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8443 to:***.***.***.***:9000
0 0 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8445 to:***.***.***.***:9000
0 0 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8444 to:***.***.***.***:9000
35 1760 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:443 to:***.***.***.***:9000
66 3432 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:443 to:***.***.***.***:9000

Chain POSTROUTING (policy ACCEPT 11110 packets, 675K bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 11110 packets, 675K bytes)
pkts bytes target prot opt in out source destination


As you can see i accidentally added the one rule twice(443). What would the command be to remove it?

I also think that the way I added those other rules are wrong.

What would the command be to recieve data from 1 port. Lets say. Incoming on port 8443 to go to port 443?

This would hopefully sort me out on when I need to add/setup routes.

Thank you very much.
 
Hi

Im the bigest noob...:p

If you can please give me a quick guide on how to add rules/open ports in Red Hat Enterprise 6.

This is the command i use to check rules:

iptables -t nat -L -n -v

These are the current rules I have at the moment:

[root@root ~]# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 296 packets, 17884 bytes)
pkts bytes target prot opt in out source destination
1 48 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8443 to:***.***.***.***:9000
0 0 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8445 to:***.***.***.***:9000
0 0 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:8444 to:***.***.***.***:9000
35 1760 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:443 to:***.***.***.***:9000
66 3432 DNAT tcp -- * * 0.0.0.0/0 ***.***.***.*** tcp dpt:443 to:***.***.***.***:9000

Chain POSTROUTING (policy ACCEPT 11110 packets, 675K bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 11110 packets, 675K bytes)
pkts bytes target prot opt in out source destination


As you can see i accidentally added the one rule twice(443). What would the command be to remove it?

I also think that the way I added those other rules are wrong.

What would the command be to recieve data from 1 port. Lets say. Incoming on port 8443 to go to port 443?

This would hopefully sort me out on when I need to add/setup routes.

Thank you very much.

Do not hijack threads. Please start your own.
 

Members online


Top