I'm attempting to add some static IP address to a new ubuntu install. I should start by saying that the system identified my etheet address as "enx[macaddresshere]" I made the following change :
Code:
root@phluf:~# cat /etc/udev/rules.d/70-my-network.rulesSUBSYSTEM=="net", ACTION=="add", ATTR{address}=="[macaddresshere]", NAME="net0"
Code:
net0 Link encap:Etheet HWaddr [macaddresshere] inet addr:10.24.10.32 Bcast:10.24.10.127 Mask:255.255.255.128
inet6 addr: fe80::2e0:4cff:fe37:2fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5894 errors:0 dropped:0 overruns:0 frame:0
TX packets:1848 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:522845 (522.8 KB) TX bytes:279346 (279.3 KB)
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)auto lo
iface lo inet loopback
auto net0
iface net0 static
address 10.24.10.100
netmask 255.255.255.128
gateway 10.24.10.1
auto net0:0
iface net0:0 static
address [public]
netmask 255.255.255.248
Code:
root@phluf:~# ifdown net0 && ifup net0/etc/network/interfaces:6: unknown or no address type and no inherits keyword specified ifdown: couldn't read interfaces file "/etc/network/interfaces"
Code:
root@phluf:~# ls -la /etc/network/interfaces-rw-r--r-- 1 root root 260 Feb 16 19:59 /etc/network/interfaces
- - , .
برچسب:
نویسنده: استخدام کار