Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2018-01-02 15:10:47

  czater - Użytkownik

czater
Użytkownik
Zarejestrowany: 2008-03-24

[CentOs] Problem ze zmostkowaniem interfejsów [pusty mostek]

Witam

Chciałem zmostkować na CentOs7 wirtualny interfejs virbr0 z istniejącym enp1s2 zgodnie z opisem na [url]https://server-world.info/en/note?os=CentOS_7&p=xen[/url]  niestety po wykonaniu polecenia usuwającego fizyczny interfers i restarcie sieci następuje odcięcie dostępu przez internet na serwerze. Przerobiłem już kilka opisów włącznie z ręcznym ustawianiem parametrów tak jak tutaj [url]https://www.itzgeek.com/how-tos/mini-howtos/create-a-network-bridge-on-centos-7-rhel-7.html[/url]l interfejsów i ciągle przy końcu konfiguracji rozłącza. Szukam działającego opisu.


To wynik z obecnie funkcjonującego systemu. Niestety w wirt-managerze dostępny mam tylko  br10 z komunikatem " br10 pusty mostek"

Kod:

 ifconfig -a | more

[code
br10: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.11.155  netmask 255.255.255.0  broadcast 192.168.11.255
        inet6 fe80::419d:9672:4462:f2b9  prefixlen 64  scopeid 0x20<link>
        ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 128  bytes 3584 (3.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15  bytes 1114 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp1s2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.11.52  netmask 255.255.255.0  broadcast 192.168.11.255
        inet6 fe80::cd14:a7e7:df0b:2498  prefixlen 64  scopeid 0x20<link>
        ether 00:16:35:37:ab:7b  txqueuelen 1000  (Ethernet)
        RX packets 42041  bytes 47310609 (45.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22705  bytes 2365080 (2.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

enp9s1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.11.150  netmask 255.255.255.0  broadcast 192.168.11.255
        inet6 fe80::c0b0:e3cf:73c1:f041  prefixlen 64  scopeid 0x20<link>
        ether 00:11:95:5f:d0:be  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 2  bytes 190 (190.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 190 (190.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vif10.0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether fe:ff:ff:ff:ff:ff  txqueuelen 32  (Ethernet)
        RX packets 164  bytes 4800 (4.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1380  bytes 71760 (70.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:63:21:e4  txqueuelen 1000  (Ethernet)
        RX packets 155  bytes 4340 (4.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 52:54:00:63:21:e4  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

]

Chciałbym zmostkować virbr0 z enp1s2 ale przy takiej konfiguracji jak poniżej nie odpowiada 192.168.11.52

ifcfg-enp1s2

Kod:

DEVICE=enp1s2
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
BRIDGE=virbr0

ifcfg-virbr0

Kod:

DEVICE=virbr0
TYPE=Bridge
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.11.52
NETMASK=255.255.255.0
GATEWAY=192.168.11.254
DNS1=192.168.11.11
USERCTL=no

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.008 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00012 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00102 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.225.254.81' WHERE u.id=1
0.00073 UPDATE punbb_online SET logged=1732199070 WHERE ident='18.225.254.81'
0.00047 SELECT * FROM punbb_online WHERE logged<1732198770
0.00079 DELETE FROM punbb_online WHERE ident='54.36.148.111'
0.00085 SELECT topic_id FROM punbb_posts WHERE id=316512
0.00081 SELECT id FROM punbb_posts WHERE topic_id=30162 ORDER BY posted
0.00055 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=30162 AND t.moved_to IS NULL
0.00006 SELECT search_for, replace_with FROM punbb_censoring
0.00076 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=30162 ORDER BY p.id LIMIT 0,25
0.00085 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30162
Total query time: 0.00705 s