network routing

Discussion in 'General Linux' started by cdcon, Aug 15, 2013.

  1. cdcon

    cdcon New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,139
    Likes Received:
    384
    Trophy Points:
    83
  3. wenkaizhu

    wenkaizhu New Member

    Messages:
    8
    Likes Received:
    3
    Trophy Points:
    1
    I am new member also,Today i have learned a lot about route.Thank you upstairs.
    ryanvade likes this.
  4. wenkaizhu

    wenkaizhu New Member

    Messages:
    8
    Likes Received:
    3
    Trophy Points:
    1
    Do you have a QQ number,I want to make a friend with you.
    ryanvade likes this.
  5. Ernestus Pretorius

    Ernestus Pretorius New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    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.
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,139
    Likes Received:
    384
    Trophy Points:
    83
    Do not hijack threads. Please start your own.
    Jeremy likes this.
  7. Ernestus Pretorius

    Ernestus Pretorius New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Apologies. Will do so.
    ryanvade likes this.

Share This Page