This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ethernet port numbering

The server has two onboard port, and one quad port adapter.

cat /etc/modules.conf 
alias eth0 tg3
alias eth1 tg3
alias eth2 e1000
alias eth3 e1000
alias eth4 e1000
alias eth5 e1000

Now I added a single port broadcom card and updated /etc/modules.conf with
alias eth6 tg3

After rebooting, the "tg3" modules loads first, and find eth0, eth1 and eth2 (the new card). Then, e1000 loads, and finds eth2-6. Basically, my quad card ports changes from eth2-5 to eth3-6.

My original firewall config that is based on eth2-5 won't work anymore.

What's the best way to "fix" this?


This thread was automatically locked due to age.
Parents Reply Children
  • Swapping PCI will only help if you have two same type of cards, say "tg3" driver.
     
    When the "tg3" driver loads, it searches through PCI slots, and detects the card based on the order. Swapping will make one card be detected earlier.

    In my case, I have "tg3" and "e1000". When tg3 loads, it will search through all pci slots and find them, before the e1000 cards.
  • what about just editing the interface in webadmin and changing the hardware from eth2 -> eth3 and so on, will that solve your problem?
  • Each of the four ports/interfaces (on the quad NIC that got re-numbered) is connected to a different network with different IP subnet and firewall rules configured. There are also tons of IP aliases configured for those interfaces. Your suggestion will work, but I am trying to see if there are easier ways ... With a clustered HA config, this is even trickier. Currently I shutdown the slave, installed the card, and noticed the problem. The master is still with old config, without the new NIC. I can't really make any changes to it.
  • Liug, I think you misunderstood dilandau's suggestion.  On the 'Interfaces' tab, find the interface defined on Eth5, and assign it to Eth6.  Do the same for the one assigned to Eth4, etc.

    Doesn't that work?

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Thanks for the clarification!
    Since I only added the new NIC to the slave machine to test out if the system can recognize the card, I don't have web admin access to the slave machine. The master is still up with the old config (without the new NIC) serving the live network. I have the slave disconnected from all networks since its interfaces are out of order now. Also, the "internal interface" that provides the webadmin access on the master is on the quad NIC and won't be available once its port number gets renumbered after I add the new NIC.
  • Don't forget to add 'Any' to WebAdmin before you upgrade that baby! [;)]
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA