![편집하다](https://linux55.com/image/32951/%ED%8E%B8%EC%A7%91%ED%95%98%EB%8B%A4.png)
저는 SUSE Linux Enterprise Server 11(x86_64)을 VM Ware 가상 머신(복제)으로 사용하고 있습니다. 이유는 모르겠지만 yast2를 통해 네트워크 카드를 구성할 수 없습니다. 편집으로 이동하여 Enter를 누르면 Yast가 제어 센터로 돌아갑니다. 또한 yast2에서는 카드가 "연결되지 않음"임을 알 수 있습니다. 그래도 그게 무슨 뜻인지는 잘 모르겠습니다.
그러나 명령줄로 가서 이 두 명령을 실행하면 네트워크가 작동되어 실행됩니다.
ifconfig eth1 10.0.0.xxx netmask 255.255.255.0 broadcast 10.0.0.255
route add default gw 10.0.0.1 eth1
/var/log/messages에서
Jun 18 14:20:19 Edumate kernel: [ 221.986998] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Jun 18 14:20:19 Edumate kernel: [ 221.988366] ADDRCONF(NETDEV_UP): eth1: link is not ready
Jun 18 14:20:19 Edumate kernel: [ 221.988482] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Jun 18 14:20:29 Edumate kernel: [ 232.399704] eth1: no IPv6 routers present
- Q1: 네트워크 구성을 수정하는 방법을 아는 사람이 있습니까?
- 질문 2: 재부팅할 때마다 네트워크가 작동되도록 하려면 위의 두 명령을 사용하여 어떤 파일을 업데이트해야 합니까?
편집하다
제거
/etc/udev/rules.d/70-persistent-net.rules
하고 다시 시작해도 도움이 되지 않았습니다./etc/sysconfig/network의 내용
교육: /var/lib/edu/bdrs # cd /etc/sysconfig/network
교육: /etc/sysconfig/network#ll
total 108
-rw-r--r-- 1 root root 13192 Jun 5 16:30 config
-rw-rw-rw- 1 root root 13181 Jun 5 15:42 config.backup.by.convert_to_netconfig
-rw-r--r-- 1 root root 7482 Jun 18 14:10 dhcp
-rw-r--r-- 1 root root 7686 Jun 5 15:42 dhcp.backup.by.convert_to_netconfig
drwxr-xr-x 2 root root 4096 Jun 5 15:42 if-down.d
drwxr-xr-x 2 root root 4096 Jun 5 15:42 if-up.d
-rw------- 1 root root 172 Jan 31 23:45 ifcfg-lo
-rw-r--r-- 1 root root 29333 Jan 31 23:45 ifcfg.template
-rw-r--r-- 1 root root 239 Jan 31 23:45 ifroute-lo
drwx------ 2 root root 4096 May 6 2010 providers
-rw-r--r-- 1 root root 22 Jun 18 14:07 routes
-rw-r--r-- 1 root root 0 Jun 18 14:07 routes.YaST2save
drwxr-xr-x 2 root root 4096 Jun 5 15:42 scripts
답변1
SuSE에서는 다음을 수행할 수 있습니다.네트워크를 수동으로 구성파일을 통해/etc/sysconfig/network
. 라는 파일을 만듭니다./etc/sysconfig/network/ifcfg-eth1
포함하다
STARTMODE=onboot
BOOTPROTO=static
IPADDR=10.0.0.xxx
NETMASK=255.255.255.0
BROADCAST=10.0.0.255
기본 경로를 설정해야 합니다/etc/sysconfig/network/routes
.
default 10.0.0.1 - eth1