Hello, I'm trying to use Shorewall on a Suse 9.2 box, with 2 Ethernet device. I must precise the device name, but eth0 and eth1 is swapping. Reading the mailing-list, i saw the option PERSISTENT_NAME for my ifcfg-XXX files. When I tried ti set en0 and en1 to name my ethernet card, my cards still be named eth0 and eth1 allocated in a random order. Someone can explain me where is my error ? chibilchin:/etc/sysconfig/network # cat "ifcfg-eth-bus-pci-0000:02:01.0" BOOTPROTO='static' BROADCAST='147.210.1.255' IPADDR='147.210.1.1' MTU='' NETMASK='255.255.255.0' NETWORK='147.210.1.0' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='GA8e.+sm7363IdX9' USERCONTROL='no' IPADDR_='147.210.1.2' NETMASK_='255.255.255.0' LABEL_='' _nm_name='bus-pci-0000:02:01.0' IPADDR__='147.210.1.2' LABEL__='' NETMASK__='255.255.255.0' PERSISTENT_NAME='en0' chibilchin:/etc/sysconfig/network # cat ifcfg-eth-bus-pci-0000:03:0d.0 BOOTPROTO='static' BROADCAST='192.168.1.255' IPADDR='192.168.1.2' MTU='' NETMASK='255.255.255.0' NETWORK='192.168.1.0' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='sLwP.yCFQUtrdkU6' USERCONTROL='no' _nm_name='bus-pci-0000:03:0d.0' PERSISTENT_NAME='en1' Thanks, Aldrik
On Thursday 31 March 2005 18:49, Aldrik KLEBER wrote:
Hello,
I'm trying to use Shorewall on a Suse 9.2 box, with 2 Ethernet device. I must precise the device name, but eth0 and eth1 is swapping.
Reading the mailing-list, i saw the option PERSISTENT_NAME for my ifcfg-XXX files.
When I tried ti set en0 and en1 to name my ethernet card, my cards still be named eth0 and eth1 allocated in a random order.
Someone can explain me where is my error ?
You can't use eth style names as PERSISTENT. Call them 'internal' and 'external', or 'mutt' and 'jeff', but don't use eth0 and eth1. Then you can use the names you give them in your rules and the system will understand them. They will *still* be called eth0 and eth1 as well, but you won't have to care
Le Jeudi 31 Mars 2005 22:41, Anders Johansson a écrit :
On Thursday 31 March 2005 18:49, Aldrik KLEBER wrote:
Hello,
I'm trying to use Shorewall on a Suse 9.2 box, with 2 Ethernet device. I must precise the device name, but eth0 and eth1 is swapping.
Reading the mailing-list, i saw the option PERSISTENT_NAME for my ifcfg-XXX files.
When I tried ti set en0 and en1 to name my ethernet card, my cards still be named eth0 and eth1 allocated in a random order.
Someone can explain me where is my error ?
You can't use eth style names as PERSISTENT. Call them 'internal' and 'external', or 'mutt' and 'jeff', but don't use eth0 and eth1.
Then you can use the names you give them in your rules and the system will understand them. They will *still* be called eth0 and eth1 as well, but you won't have to care
I believed eth0 and eth1 will disapear, I understand know. I tried so to define 'internet' device and 'intranet' device through PERSISTENT_NAME option, but when I reboot shorewall answer me : Masqueraded Networks and Hosts: Error: Unable to determine the routes through interface "intranet"
On Friday 01 April 2005 09:42, Aldrik KLEBER wrote:
believed eth0 and eth1 will disapear, I understand know. I tried so to define 'internet' device and 'intranet' device through PERSISTENT_NAME option, but when I reboot shorewall answer me : Masqueraded Networks and Hosts: Error: Unable to determine the routes through interface "intranet"
And if you list your interfaces with 'ifconfig', can you see your new names? Could you post your ifcfg-files?
Le Vendredi 1 Avril 2005 13:20, Anders Johansson a écrit :
On Friday 01 April 2005 09:42, Aldrik KLEBER wrote:
believed eth0 and eth1 will disapear, I understand know. I tried so to define 'internet' device and 'intranet' device through PERSISTENT_NAME option, but when I reboot shorewall answer me : Masqueraded Networks and Hosts: Error: Unable to determine the routes through interface "intranet"
And if you list your interfaces with 'ifconfig', can you see your new names? Could you post your ifcfg-files?
When I do ifconfig I see eth0 and eth1 this my config files : /etc/sysconfig/network/ifcfg-eth-bus-pci-0000:02:01.0 ----------------------------------- BOOTPROTO='static' BROADCAST='147.210.1.255' IPADDR='147.210.1.1' MTU='' NETMASK='255.255.255.0' NETWORK='147.210.1.0' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='GA8e.+sm7363IdX9' USERCONTROL='no' IPADDR_='147.210.1.2' NETMASK_='255.255.255.0' LABEL_='' _nm_name='bus-pci-0000:02:01.0' IPADDR__='147.210.1.2' LABEL__='' NETMASK__='255.255.255.0' PERSISTENT_NAME='intranet' /etc/sysconfig/network/ifcfg-eth-bus-pci-0000:03:0d.0 ------------------------------------ BOOTPROTO='static' BROADCAST='192.168.1.255' IPADDR='192.168.1.2' MTU='' NETMASK='255.255.255.0' NETWORK='192.168.1.0' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='sLwP.yCFQUtrdkU6' USERCONTROL='no' _nm_name='bus-pci-0000:03:0d.0' PERSISTENT_NAME='internet' /etc/sysconfig/hardware/hwcfg-bus-pci-0000:02:01.0 ----------------------------------------------------- MODULE='e1000' MODULE_OPTIONS='' STARTMODE='auto' /etc/sysconfig/hardware/hwcfg-bus-pci-0000:03:0d.0 ----------------------------------------------------- MODULE='8139too' MODULE_OPTIONS='' STARTMODE='auto' chibilchin:/etc/sysconfig/hardware # ifconfig eth0 Lien encap:Ethernet HWaddr 00:11:2F:DD:6B:8C inet adr:147.210.1.1 Bcast:147.210.1.255 Masque:255.255.255.0 adr inet6: fe80::211:2fff:fedd:6b8c/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:504 errors:0 dropped:0 overruns:0 frame:0 TX packets:413 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:45737 (44.6 Kb) TX bytes:85914 (83.9 Kb) Adresse de base:0xcf80 Mémoire:fe9e0000-fea00000 eth1 Lien encap:Ethernet HWaddr 00:02:44:91:D1:6D inet adr:192.168.1.2 Bcast:192.168.1.255 Masque:255.255.255.0 adr inet6: fe80::202:44ff:fe91:d16d/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:207 errors:0 dropped:0 overruns:0 frame:0 TX packets:233 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:69124 (67.5 Kb) TX bytes:20480 (20.0 Kb) Interruption:209 Adresse de base:0xec00 lo Lien encap:Boucle locale inet adr:127.0.0.1 Masque:255.0.0.0 adr inet6: ::1/128 Scope:HÎte UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:502 (502.0 b) TX bytes:502 (502.0 b)
On Friday 01 April 2005 15:59, Aldrik KLEBER wrote: /etc/sysconfig/network/ifcfg-eth-bus-pci-0000:02:01.0
----------------------------------- BOOTPROTO='static' BROADCAST='147.210.1.255' IPADDR='147.210.1.1' MTU='' NETMASK='255.255.255.0' NETWORK='147.210.1.0' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='GA8e.+sm7363IdX9' USERCONTROL='no' IPADDR_='147.210.1.2' NETMASK_='255.255.255.0' LABEL_='' _nm_name='bus-pci-0000:02:01.0' IPADDR__='147.210.1.2' LABEL__='' NETMASK__='255.255.255.0' PERSISTENT_NAME='intranet'
Hm, you're using aliases. I haven't tried it with aliases. I'll have to do that
/etc/sysconfig/network/ifcfg-eth-bus-pci-0000:03:0d.0 ------------------------------------ BOOTPROTO='static' BROADCAST='192.168.1.255' IPADDR='192.168.1.2' MTU='' NETMASK='255.255.255.0' NETWORK='192.168.1.0' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='sLwP.yCFQUtrdkU6' USERCONTROL='no' _nm_name='bus-pci-0000:03:0d.0' PERSISTENT_NAME='internet'
Hm, this one should work. I'll have to look closer at this
On Friday 01 April 2005 1:42 am, Aldrik KLEBER wrote:
I believed eth0 and eth1 will disapear, I understand know. I tried so to define 'internet' device and 'intranet' device through PERSISTENT_NAME option, but when I reboot shorewall answer me : Masqueraded Networks and Hosts: Error: Unable to determine the routes through interface "intranet"
For Shorewall I deleted the eth0 and eth1 interfaces and added internal and external. Got similar masquerade errors so I deleted the old 'masq' and created the new with external and internal. Saw similar problems with ifconfig NOT showing internal or external. Rebooted and it all worked. Had tried "rcnetwork restart" but that didn't change anything. Bind and dhcp had troubles until after the reboot also. YMMV Stan
Le Vendredi 1 Avril 2005 16:32, Anders Johansson a écrit :
On Friday 01 April 2005 15:59, Aldrik KLEBER wrote: /etc/sysconfig/network/ifcfg-eth-bus-pci-0000:02:01.0
----------------------------------- BOOTPROTO='static' BROADCAST='147.210.1.255' IPADDR='147.210.1.1' MTU='' NETMASK='255.255.255.0' NETWORK='147.210.1.0' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='GA8e.+sm7363IdX9' USERCONTROL='no' IPADDR_='147.210.1.2' NETMASK_='255.255.255.0' LABEL_='' _nm_name='bus-pci-0000:02:01.0' IPADDR__='147.210.1.2' LABEL__='' NETMASK__='255.255.255.0' PERSISTENT_NAME='intranet'
Hm, you're using aliases. I haven't tried it with aliases. I'll have to do that
/etc/sysconfig/network/ifcfg-eth-bus-pci-0000:03:0d.0 ------------------------------------ BOOTPROTO='static' BROADCAST='192.168.1.255' IPADDR='192.168.1.2' MTU='' NETMASK='255.255.255.0' NETWORK='192.168.1.0' REMOTE_IPADDR='' STARTMODE='onboot' UNIQUE='sLwP.yCFQUtrdkU6' USERCONTROL='no' _nm_name='bus-pci-0000:03:0d.0' PERSISTENT_NAME='internet'
Hm, this one should work. I'll have to look closer at this
I made other test cleaning /etc/sysconfig/network/ifcfg-eth-bus-pci-0000:02:01.0 and adding an '_' to give an other persistent_name to 147.210.1.2, but the error message didn't disappear. this my new configuration file for the nic dedicated to the lan: chibilchin:/etc/sysconfig/network # cat "ifcfg-eth-bus-pci-0000:02:01.0" BOOTPROTO='static' BROADCAST='147.210.1.255' IPADDR='147.210.1.1' MTU='' NETMASK='255.255.255.0' NETWORK='147.210.1.0' PERSISTENT_NAME='intranet' REMOTE_IPADDR='' STARTMODE='auto' UNIQUE='GA8e.+sm7363IdX9' USERCONTROL='no' IPADDR_='147.210.1.2' NETMASK_='255.255.255.0' PERSISTENT_NAME_='intranet2' LABEL_='' _nm_name='bus-pci-0000:02:01.0' Perhaps it isn't possible to assign a persistent name to nic with multiple ip ? I Will make some supplementary tests to check this theory.
Le Vendredi 1 Avril 2005 18:33, Stan Glasoe a écrit :
On Friday 01 April 2005 1:42 am, Aldrik KLEBER wrote:
I believed eth0 and eth1 will disapear, I understand know. I tried so to define 'internet' device and 'intranet' device through PERSISTENT_NAME option, but when I reboot shorewall answer me : Masqueraded Networks and Hosts: Error: Unable to determine the routes through interface "intranet"
For Shorewall I deleted the eth0 and eth1 interfaces and added internal and external. Got similar masquerade errors so I deleted the old 'masq' and created the new with external and internal. Saw similar problems with ifconfig NOT showing internal or external.
Rebooted and it all worked. Had tried "rcnetwork restart" but that didn't change anything. Bind and dhcp had troubles until after the reboot also.
YMMV Stan
You was finally able to run shorewall with persistent_name ? For dhcp Yast manage the identification of the nic, with bind no problem because I manage the security through ip rules. Aldrik
participants (3)
-
Aldrik KLEBER
-
Anders Johansson
-
Stan Glasoe