LINUX.ORG.RU

[gentoo][xen]dhcpcd даёт старнные имена интерфейсам.


0

1

Если внести dhcpcd в уровень запуска default, загрузки имеется куча интерфейсов с именами типа pethX, и peth0 - это eth0. Из-за этого нет выхода в интернет. Если же из default удалить dhcpcd и запускать его после загрузки вручную, eth0 работает исправно.

rc-update

localhost frag # rc-update
                  xdm |      default                                  
                 dbus |      default                                  
                 fsck | boot                                          
                 mtab | boot                                          
                 root | boot                                          
                 swap | boot                                          
                 udev |                                 sysinit       
                 xend |      default                                  
              keymaps | boot                                          
                acpid |      default                                  
                devfs |                                 sysinit       
                dmesg |                                 sysinit       
                local |      default          nonetwork               
            savecache |              shutdown                         
           vixie-cron |      default                                  
            syslog-ng |      default                                  
           consolekit |      default                                  
           localmount | boot                                          
          consolefont | boot                                          
              modules | boot                                          
             hostname | boot                                          
             mount-ro |              shutdown                         
               net.lo | boot                                          
               procfs | boot                                          
             netmount |      default                                  
               sysctl | boot                                          
              urandom | boot                                          
         termencoding | boot                                          
       udev-postmount |      default                                  
             libvirtd |      default                                  
              hwclock | boot                                          
             bootmisc | boot                                          
           irqbalance |      default                                  
            killprocs |              shutdown          

ifconfig

localhost frag # ifconfig
eth0      Link encap:Ethernet  HWaddr 70:71:bc:cc:d3:4c  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7271:bcff:fecc:d34c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12155 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:15369832 (14.6 MiB)  TX bytes:1290258 (1.2 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11644 (11.3 KiB)  TX bytes:11644 (11.3 KiB)

peth0     Link encap:Ethernet  HWaddr 70:71:bc:cc:d3:4c  
          inet addr:169.254.31.69  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::7271:bcff:fecc:d34c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:13334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15556600 (14.8 MiB)  TX bytes:1329620 (1.2 MiB)
          Interrupt:20 Memory:f7300000-f7320000 

veth0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:169.254.102.166  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:36878 (36.0 KiB)  TX bytes:36878 (36.0 KiB)

...

veth3     Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:169.254.161.32  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:36878 (36.0 KiB)  TX bytes:36878 (36.0 KiB)

vif0.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff  
          inet addr:169.254.152.213  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:36878 (36.0 KiB)  TX bytes:36878 (36.0 KiB)

...

vif0.3    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff  
          inet addr:169.254.50.238  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:36878 (36.0 KiB)  TX bytes:36878 (36.0 KiB)

virbr0    Link encap:Ethernet  HWaddr da:4d:df:a0:43:f0  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::d84d:dfff:fea0:43f0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:36878 (36.0 KiB)

Как решить проблему?


Впиши его запуск в /etc/init.d/local
А сетевые ресурсы монтируй через autofs.

Lumi ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.