Score:0

problems with Hyper-v ethernet external connection

br flag

I am using Hyper-v with ubuntu20.04. I want to set static IP. I created external virtual switch. I try few things to set address. Through ifconfig (ifconfig eth0 192.168.0.70/24), through netplan. When I change from default switch to external switch eth0 is down. What I am doung wrong.

2: etho: <NO-CARRIER BROADCAST, MULTICAST UP> mtu 1500 con qdisc mq state down group default qlen 1000
 link/ether ..
inet 192.168.0.70/2 brd 192.168.0.255 scope global eth0
ru flag
Hyper-V networking is a host level thing at Windows, and not an Ubuntu issue/question. This is something that you need to handle at the Hyper-V level, it's not an Ubuntu issue if you change Hyper-V switches and no longer have connections working, it's something your'e doing wrong at the HyperV level that's likely to be your problem. (And the Hyper-V part is offtopic here)
Vladimir Yanakiev avatar
br flag
Well I read few tutorials for this. This is the way to set static Ip.
ru flag
You're not wrong this is how to set a static IP, but to actually get connectivity to Internet and such you need a lot more work. Simply having an IP address doesn't work. Also your CIDR range is wrong if you're intending to do a /24, it is clear from your putput that there's a /2 not a /24
Vladimir Yanakiev avatar
br flag
Thomas Ward what else I need to do, would u give me a link
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.