Quantcast
Viewing all articles
Browse latest Browse all 2901

System and Network configuration • Re: Network Configuration - /etc/nework/interfaces not working

Hi, thanks for the quick reply.
I added a vlan(vlan100) with this being my full config to /etc/network/interfaces:

auto eth0
iface eth0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down

auto vlan100
iface vlan100 inet static
address PRIVATE IP ADDRESS/16
gateway MY GATEWAY
dns-nameservers 8.8.8.8
vlan-raw-device eth0

systemctl restart networking now works. My eth0 interface shows and DHCP IP address, the first IP from one of my class b subnets. I've checked DHCP services/client
but I have none configured in the server.

Here are the commands output:

ifdown -a --took all the interfaces down.

sudo ifup -v -a
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/vlan
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/resolved
run-parts: executing /etc/network/if-up.d/wpasupplicant

sudo ip address

8: vlan100@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether MAC ADDRESS HERE
inet MY-PRIVATE-IPADDRESS/24 brd MY-PRIVATE-BROADCAST scope global vlan173
valid_lft forever preferred_lft forever
inet6 MAC ADDRESS HERE scope link
valid_lft forever preferred_lft forever

sudo ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback MAC ADDRESS HERE
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno1
altname enp55s0f0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno2
altname enp55s0f1
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno3
altname enp55s0f2
5: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno4
altname enp55s0f3
6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno5
altname enp55s0f4
7: eth5: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE
altname eno6
altname enp55s0f5
8: vlan100@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether MAC ADDRESS HERE

Statistics: Posted by herlitml — 2024-10-07 19:06



Viewing all articles
Browse latest Browse all 2901

Trending Articles