2016-01-21 13 views
5

yanlıştır . IP rota ben</strong> RHEL 7 <strong>eski adıyla <code>eth0</code> varsayılan ağ adını değiştirmek istediğim için <code>grub2</code> için iki seçenek <code>net.ifnames=0</code><code>biosdevname=0</code> eklenen

Ondan sonra, makine için varsayılan ağ geçidini ayarlamak için /etc/sysconfig/network düzenlendi:

GATEWAY=192.168.88.1

Ve yapılandırılmış ağ arabirimini. Sadece bir ağ arabirimim var eth0, her şey iyi çalışıyor. İşte

bir ağ arayüzü eth0 ile rota tablodur:

[[email protected] ~]# route -n 
Kernel IP routing table 
Destination  Gateway   Genmask   Flags Metric Ref Use Iface 
0.0.0.0   192.168.88.1 0.0.0.0   UG 100 0  0 eth0 
192.168.88.0 0.0.0.0   255.255.255.0 U  100 0  0 eth0 
[[email protected] ~]# 

Ama ne zaman birden fazla ağ arayüz çevrimiçi rota tabloyla sorunu aldık. Gördüğünüz gibi

[[email protected] ~]# route -n 
Kernel IP routing table 
Destination  Gateway   Genmask   Flags Metric Ref Use Iface 
0.0.0.0   192.168.88.1 0.0.0.0   UG 100 0  0 eth0 
0.0.0.0   192.168.88.1 0.0.0.0   UG 101 0  0 eth1 
172.168.0.0  0.0.0.0   255.255.0.0  U  100 0  0 eth1 
192.168.88.0 0.0.0.0   255.255.255.0 U  100 0  0 eth0 
192.168.88.1 0.0.0.0   255.255.255.255 UH 100 0  0 eth1 
[[email protected] ~]# 

, ağ geçidi adresi 192.168.88.1 son satırında eth1 eklendi. Ve ağ geçidi adresi sürekli olarak yeni ağ arayüzü ile eklenir.

[[email protected] network-scripts]# route 
Kernel IP routing table 
Destination  Gateway   Genmask   Flags Metric Ref Use Iface 
default   192.168.88.1 0.0.0.0   UG 100 0  0 eth0 
default   192.168.88.1 0.0.0.0   UG 101 0  0 eth1 
default   192.168.88.1 0.0.0.0   UG 102 0  0 eth2 
172.168.0.0  0.0.0.0   255.255.0.0  U  100 0  0 eth1 
172.168.0.0  0.0.0.0   255.255.0.0  U  101 0  0 eth2 
192.168.88.0 0.0.0.0   255.255.255.0 U  100 0  0 eth0 
192.168.88.1 0.0.0.0   255.255.255.255 UH 100 0  0 eth1 
192.168.88.1 0.0.0.0   255.255.255.255 UH 101 0  0 eth2 

Aslında mesele i grub2 seçeneğine net.ifnames=0 eklenen görünür hale gelir. Biri bana yardım etsin lütfen.

+0

eksik mümkün olabilir düşünüyorum ben benim soru için çözüm buldu: http://serverfault.com/questions/750950/route-table-issue- -i ekteki-seçenek-ağ-ifnames-0-to-grub2 –

cevap

0

Ben nedeniyle ifcfg-eth1

# cd /etc/sysconfig/network-scripts 
# cp ifcfg-eth0 ifcfg-eth1 
İlgili konular