
나는 다른 곳의 데이터 센터에 있는 원격 호스트에 새로 설치된 Debian Buster 설치 작업을 하고 있습니다.
작업 표준 /etc/network/interfaces를 다시 제자리에 복사하고 재부팅할 스크립트가 준비되어 있습니다.~에네트워크 구성을 변경하는 데 문제가 발생하면 명령을 입력해야 합니다.
/etc/network/interfaces에 브리지 br0 항목을 추가하고 ifup br0을 호출하면 브리지 인터페이스가 다음과 같이 나타납니다.
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet xx.xxx.62.204 netmask 255.255.255.0 broadcast xx.xxx.62.255
inet6 xxxx::7a2b:cbff:fe71:b0b0 prefixlen 64 scopeid 0x20<link>
ether 78:xx:xx:xx:b0:b0 txqueuelen 1000 (Ethernet)
RX packets 1722 bytes 80621 (78.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 426 (426.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet xx.xxx.62.204 netmask 255.255.255.0 broadcast xx.xxx.62.255
ether 78:xx:xx:xx:b0:b0 txqueuelen 1000 (Ethernet)
RX packets 27871902 bytes 1784816339 (1.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10682 bytes 1326822 (1.2 MiB)
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 1000 (Lokale Schleife)
RX packets 26 bytes 3455 (3.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26 bytes 3455 (3.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
이 /etc/network/interfaces 항목을 사용하여:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
iface eno1 inet static
address xx.xxx.62.204
netmask 255.255.255.0
network xx.xxx.62.0
broadcast xx.xxx.62.255
gateway xx.xxx.62.254
iface eno1 inet6 static
address xxxx:198:ff0d:e800::/40
pre-up echo 0 > /proc/sys/net/ipv6/conf/eno1/accept_dad
post-up ip -6 route add default via xxxx:198:ff00::1
up ip -6 addr add xxxx:198:ff0d:e800::1/40 dev $IFACE
down ip -6 addr del xxxx:198:ff0d:e800::1/40 dev $IFACE
auto br0
iface br0 inet static
address xx.xxx.62.204
netmask 255.255.255.0
gateway xx.xxx.62.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
그러나 몇 초 후에 SSH 연결이 멈추고 핑 패킷이 더 이상 도착하지 않으며 긴급 스크립트가 복구/재부팅될 때까지 기다려야 합니다.
전체적인 시도는 별도의 IP4 주소를 통해 외부 세계에 액세스할 수 있는 브리지 인터페이스를 갖춘 호스트의 kvm 가상 머신을 제공하는 것입니다.
추가된 브리지 항목은 다음과 같습니다.이 서버 오류 게시물