답변1
구성 파일의 기호를 기호로 바꾼 것 같습니다 =
. 대신 a를 a로 바꾸고 네트워크 서비스를 다시 시작해 보세요.:
IPADDR:192.168.10.25
IPADDR=192.168.10.25
:
=
데모:
cat /etc/sysconfig/network-scripts/ifcfg-eth1:1
DEVICE=eth1:1
HWADDR=08:00:27:1F:BE:7E
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR:192.168.56.102
ifup eth1:1
/etc/sysconfig/network-scripts/ifcfg-eth1:1: line 7: IPADDR:192.168.56.102: command not found
/etc/sysconfig/network-scripts/ifcfg-eth1:1: line 7: IPADDR:192.168.56.102: command not found
/etc/sysconfig/network-scripts/ifcfg-eth1:1: line 7: IPADDR:192.168.56.102: command not found
/etc/sysconfig/network-scripts/ifcfg-eth1:1: line 7: IPADDR:192.168.56.102: command not found
다음과 같이 됩니다 :
:=
ifup eth1:1
Determining if ip address 192.168.56.102 is already in use for device eth1...
ifconfig eth1:1
eth1:1 Link encap:Ethernet HWaddr 08:00:27:1F:BE:7E
inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1