Link to home
Start Free TrialLog in
Avatar of Jasmin shahrzad
Jasmin shahrzad

asked on

network problem on ubuntu 20.04 desktop

I have a ubuntu 20.04 (install on dell latitude 7400).
 when i using standard net 01-xxx.yaml  (as below)
---
network:
  version: 2
  renderer: NetworkManager
----
i  change my netplan to bridge and using following netplan.
-----
network:
    ethernets:
        "my-netkort-interface:
            dhcp4: no
    version: 2
    bridges:
        br0:
            dhcp4: no
            addresses:
            - 10.74.0.18/24
            gateway4: 10.74.0.1
            nameservers:
                addresses:
                - 10.74.0.122
            interfaces:
            - my-netkort-interface
----
i can't connect to internet.
something is strange yaml file not working as yaml file. normally i yaml file in vi when you write fx.
network: then enter the next line is begin with automatically tab under version. but here dose not do that it's working as normal file !! 
Avatar of Ashok Dewan
Ashok Dewan
Flag of India image

What error it is displaying? Is it displaying an error by showing at what line problem lies?
Avatar of Jasmin shahrzad
Jasmin shahrzad

ASKER

no error when i change to bridges then say netplan try  then netplan apply  and all is correct. then after a while is disconnect to net.
something very strange. laptop don't have a wired net. it get it via docking station.
when i make a bridge then i create bridge of docking net. maybe is therefore is not working.  
ASKER CERTIFIED SOLUTION
Avatar of nobus
nobus
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note: When installing Ubuntu, networking should work, with no changes to any NetPlan files.

Try simply removing the NetPlan file you created + test if networking magically begins working again.

https://linuxhint.com/install_netplan_ubuntu/ provides a good debugging guide.
I found what the problem was. gateway4 is not routed to lxd, it's because of dockingstation. i used dockingstation because there is not wired kort in laptop. i change to orginal docking station for dell. and it's working now.