Activation of network connection failed (VLAN)
I'm trying to set up a VLAN to test an issue. I have the following:
- A dell laptop running windows 7
- A lenovo notebook running ubuntu from live USB with some storage preserved on it
- A tp-link TL-SG105E switch set up to have VLAN with the id 100
Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?
windows ethernet vlan
New contributor
add a comment |
I'm trying to set up a VLAN to test an issue. I have the following:
- A dell laptop running windows 7
- A lenovo notebook running ubuntu from live USB with some storage preserved on it
- A tp-link TL-SG105E switch set up to have VLAN with the id 100
Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?
windows ethernet vlan
New contributor
add a comment |
I'm trying to set up a VLAN to test an issue. I have the following:
- A dell laptop running windows 7
- A lenovo notebook running ubuntu from live USB with some storage preserved on it
- A tp-link TL-SG105E switch set up to have VLAN with the id 100
Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?
windows ethernet vlan
New contributor
I'm trying to set up a VLAN to test an issue. I have the following:
- A dell laptop running windows 7
- A lenovo notebook running ubuntu from live USB with some storage preserved on it
- A tp-link TL-SG105E switch set up to have VLAN with the id 100
Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?
windows ethernet vlan
windows ethernet vlan
New contributor
New contributor
edited 15 hours ago
vidarlo
10.8k52748
10.8k52748
New contributor
asked 16 hours ago
Azazel DarthAzazel Darth
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
Is the problem. The commands are not internally consistent.
First, find adapter name:
ip link
This will show you the interfaces. Note down the correct name of the interface. Then create vlan
sudo ip link add link interfacename name vlan100 type vlan id 100
This will create a new interface named vlan100
on interfacename
with vlan 100.
Next, set an IP:
sudo ip addr add dev vlan100 172.16.32.20/24
You used different device names for the same thing, with no internal consistency.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1123193%2factivation-of-network-connection-failed-vlan%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
Is the problem. The commands are not internally consistent.
First, find adapter name:
ip link
This will show you the interfaces. Note down the correct name of the interface. Then create vlan
sudo ip link add link interfacename name vlan100 type vlan id 100
This will create a new interface named vlan100
on interfacename
with vlan 100.
Next, set an IP:
sudo ip addr add dev vlan100 172.16.32.20/24
You used different device names for the same thing, with no internal consistency.
add a comment |
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
Is the problem. The commands are not internally consistent.
First, find adapter name:
ip link
This will show you the interfaces. Note down the correct name of the interface. Then create vlan
sudo ip link add link interfacename name vlan100 type vlan id 100
This will create a new interface named vlan100
on interfacename
with vlan 100.
Next, set an IP:
sudo ip addr add dev vlan100 172.16.32.20/24
You used different device names for the same thing, with no internal consistency.
add a comment |
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
Is the problem. The commands are not internally consistent.
First, find adapter name:
ip link
This will show you the interfaces. Note down the correct name of the interface. Then create vlan
sudo ip link add link interfacename name vlan100 type vlan id 100
This will create a new interface named vlan100
on interfacename
with vlan 100.
Next, set an IP:
sudo ip addr add dev vlan100 172.16.32.20/24
You used different device names for the same thing, with no internal consistency.
sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24
Is the problem. The commands are not internally consistent.
First, find adapter name:
ip link
This will show you the interfaces. Note down the correct name of the interface. Then create vlan
sudo ip link add link interfacename name vlan100 type vlan id 100
This will create a new interface named vlan100
on interfacename
with vlan 100.
Next, set an IP:
sudo ip addr add dev vlan100 172.16.32.20/24
You used different device names for the same thing, with no internal consistency.
answered 15 hours ago
vidarlovidarlo
10.8k52748
10.8k52748
add a comment |
add a comment |
Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1123193%2factivation-of-network-connection-failed-vlan%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