خرید بک لینک

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"
And it now shows up in my ifconfig -a as '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)
The given address, 10.24.10.32 is given via DHCP at boot with no configuration from my side. I'm attempting to get both a public and private address on 'net0'. I've made changes to /etc/network/interfaces:

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
I've tried this both with and without the subinterface :0, and with and without "auto net0" lines, and with and without netmask lines, adding CIDR notation to the address instead, all to no avail.
With the config file as above ^ when I attempt to run ifdown/ifup, I get:

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"
Permissions look like this:

Code:

root@phluf:~# ls -la /etc/network/interfaces-rw-r--r-- 1 root root 260 Feb 16 19:59 /etc/network/interfaces
I'm ruing commands as root. I googled around a bit and found a few errors with /etc/network/interfaces, but it mostly seemed to be people with typos... I don't SEE a typo in my config, but I'll forehead myself if one is found...
** Sorry for the multiple threads! I'm not sure why 2 were created, and were blank. Hoping this works... **

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 28 بهمن 1394 ساعت: 11:05

صفحه بندی