Netplan not spoofing MAC as expectedSetting up Windows network on XenPort foreword + openVPN + iptables?Configure static IPv6 on UbuntuStatic virtual IP in debian 6.0.4KVM/Libvirt bridged/routed networking not working on newer guest kernelssome nodes in a cluster has higher frame value in ifconfigVirtual interface gets static IP, actual interface doesn't?KVM Network configuration + VLAN truncktcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesStatic Public IP Address on Amazon EC2
Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?
What is the STRONGEST end-of-line knot to use if you want to use a steel-thimble at the end, so that you've got a steel-eyelet at the end of the line?
What do I need to do, tax-wise, for a sudden windfall?
What would the consequences be of a high number of solar systems being within close proximity to one another?
Forgot passport for Alaska cruise (Anchorage to Vancouver)
As easy as Three, Two, One... How fast can you go from Five to Four?
How to Handle Many Times Series Simultaneously?
Should I explain the reasons for gaslighting?
Finding diameter of a circle using two chords and angle between them
Should I be able to use the Gloom Stalker ranger's Dread Ambusher class feature when attacking before initiative has been rolled to add a d8 damage?
What is this object?
Nth term of Van Eck Sequence
Recording Spectral Lines at Home
Does a single fopen introduce TOCTOU vulnerability?
Why is my power MOSFET heating up when on?
Is tuition reimbursement a good idea if you have to stay with the job
Why did the World Bank set the global poverty line at $1.90?
What is the "books received" section in journals?
Quasar Redshifts
Savage Road Signs
How can powerful telekinesis avoid violating Newton's 3rd Law?
How do I type a hyphen in iOS 12?
What is Gilligan's full Name?
Am I allowed to determine tenets of my contract as a warlock?
Netplan not spoofing MAC as expected
Setting up Windows network on XenPort foreword + openVPN + iptables?Configure static IPv6 on UbuntuStatic virtual IP in debian 6.0.4KVM/Libvirt bridged/routed networking not working on newer guest kernelssome nodes in a cluster has higher frame value in ifconfigVirtual interface gets static IP, actual interface doesn't?KVM Network configuration + VLAN truncktcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesStatic Public IP Address on Amazon EC2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.
network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2
After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000
What have I missed?
ubuntu networking ubuntu-18.04
add a comment |
I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.
network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2
After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000
What have I missed?
ubuntu networking ubuntu-18.04
1
What is yourrenderer
?
– Michael Hampton♦
Jul 9 '18 at 0:46
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49
add a comment |
I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.
network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2
After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000
What have I missed?
ubuntu networking ubuntu-18.04
I'm trying to set a different MAC address on one of my interfaces, but my attempts following the netplan documentation result in no change. This is on Ubuntu 18.04.
network:
ethernets:
enp10s0:
addresses: []
dhcp4: true
optional: true
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
enp5s0:
addresses: []
dhcp4: true
macaddress: aa:bb:cc:ff:ff:ff
optional: true
routes:
- to: 239.0.0.0/8
via: 10.10.0.1
version: 2
After running netplan generate and netplan apply, and also rebooting, there is no change to the macaddress of enp5s0
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.227 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::7285:c2ff:fe53:119c prefixlen 64 scopeid 0x20<link>
ether 70:85:c2:53:11:9c txqueuelen 1000 (Ethernet)
RX packets 3623 bytes 1557193 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3066 bytes 291335 (291.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 68:05:ca:61:a8:fc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 34 memory 0xfd4c0000-fd4e0000
What have I missed?
ubuntu networking ubuntu-18.04
ubuntu networking ubuntu-18.04
asked Jul 8 '18 at 18:43
John MoffittJohn Moffitt
1162
1162
1
What is yourrenderer
?
– Michael Hampton♦
Jul 9 '18 at 0:46
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49
add a comment |
1
What is yourrenderer
?
– Michael Hampton♦
Jul 9 '18 at 0:46
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49
1
1
What is your
renderer
?– Michael Hampton♦
Jul 9 '18 at 0:46
What is your
renderer
?– Michael Hampton♦
Jul 9 '18 at 0:46
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49
add a comment |
3 Answers
3
active
oldest
votes
I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.
add a comment |
All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)
network:
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp1s0:
match:
macaddress: 4c:ed:fe:32:de:22
macaddress: de:de:de:de:de:de
dhcp4: no
dhcp6: no
addresses: [172.30.0.58/24, ]
gateway4: 172.30.0.254
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
version: 2
I sincerely hope this helps you buddy :)
add a comment |
I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.
The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link
to override the MAC address of the NIC and configure the rest via netplan.
[Match]
MacAddress=52:54:00:6b:3c:58
[Link]
MACAddress=52:54:00:6b:3c:59
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f920020%2fnetplan-not-spoofing-mac-as-expected%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.
add a comment |
I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.
add a comment |
I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.
I believe it only changes the MAC address that gets reported to the external connection. Running ifconfig locally will always give you the interface's real MAC address.
answered Oct 9 '18 at 8:02
ColdColdColdCold
1112
1112
add a comment |
add a comment |
All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)
network:
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp1s0:
match:
macaddress: 4c:ed:fe:32:de:22
macaddress: de:de:de:de:de:de
dhcp4: no
dhcp6: no
addresses: [172.30.0.58/24, ]
gateway4: 172.30.0.254
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
version: 2
I sincerely hope this helps you buddy :)
add a comment |
All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)
network:
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp1s0:
match:
macaddress: 4c:ed:fe:32:de:22
macaddress: de:de:de:de:de:de
dhcp4: no
dhcp6: no
addresses: [172.30.0.58/24, ]
gateway4: 172.30.0.254
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
version: 2
I sincerely hope this helps you buddy :)
add a comment |
All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)
network:
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp1s0:
match:
macaddress: 4c:ed:fe:32:de:22
macaddress: de:de:de:de:de:de
dhcp4: no
dhcp6: no
addresses: [172.30.0.58/24, ]
gateway4: 172.30.0.254
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
version: 2
I sincerely hope this helps you buddy :)
All right, I had the same problem but I finally got fixed by adding a match keyword in my script, my MAC address was 4c:ed:fe:32:de:22 and I had to specify it before changing it or forcing it. (I also added a renderer which is networkd)
network:
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp1s0:
match:
macaddress: 4c:ed:fe:32:de:22
macaddress: de:de:de:de:de:de
dhcp4: no
dhcp6: no
addresses: [172.30.0.58/24, ]
gateway4: 172.30.0.254
nameservers:
addresses: [208.67.222.222, 208.67.220.220]
version: 2
I sincerely hope this helps you buddy :)
answered Feb 21 at 2:31
XedretXedret
1113
1113
add a comment |
add a comment |
I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.
The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link
to override the MAC address of the NIC and configure the rest via netplan.
[Match]
MacAddress=52:54:00:6b:3c:58
[Link]
MACAddress=52:54:00:6b:3c:59
add a comment |
I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.
The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link
to override the MAC address of the NIC and configure the rest via netplan.
[Match]
MacAddress=52:54:00:6b:3c:58
[Link]
MACAddress=52:54:00:6b:3c:59
add a comment |
I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.
The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link
to override the MAC address of the NIC and configure the rest via netplan.
[Match]
MacAddress=52:54:00:6b:3c:58
[Link]
MACAddress=52:54:00:6b:3c:59
I had the same problem that Netplan didn't override the MAC address on Ubuntu Server 18.04, although I used a match clause as described in the netplan reference before setting the new MAC address.
The workaround was to create a separate systemd link configuration under /etc/systemd/network/10-override-mac.link
to override the MAC address of the NIC and configure the rest via netplan.
[Match]
MacAddress=52:54:00:6b:3c:58
[Link]
MACAddress=52:54:00:6b:3c:59
edited May 28 at 19:18
answered May 28 at 7:12
iY1NQiY1NQ
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f920020%2fnetplan-not-spoofing-mac-as-expected%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What is your
renderer
?– Michael Hampton♦
Jul 9 '18 at 0:46
What NIC and driver, physical or virtual?
– John Mahowald
Jul 9 '18 at 12:49