JaySee | Hi, I am trying to config ubuntu server with netplan with several NIC. I am not able to make it work with more than 1 NIC. Could anyone help to fix the problem. Config --> https://paste.ubuntu.com/p/N9zvQGj76q/ | 11:34 |
---|---|---|
slyon | Hi JaySee! Is there any error message? Your config looks ok on first glance. could you maybe paste your `ip a` output? | 12:03 |
JaySee | @slyon: There are no errors. But I am not able to connect using other NIC except first NIC. ip a output --> https://paste.ubuntu.com/p/G5zCKYGFQC/ | 12:22 |
slyon | thanks JaySee, 'ip a' shows that netplan applied all the IP addresses correctly to the interfaces | 12:31 |
slyon | So i assume the problem must be somewhere else, how are you trying to connect? are there any firewall rules in place? what about routes? | 12:32 |
JaySee | This server is behind the firewall. But I am trying to connect to this server behind the firewall only. If i use the "renderer: NetworkManager", rather than "renderer: networkd" all the 4 interfaces are working fine. | 12:41 |
JaySee | I am not sure, what is the problem | 12:41 |
JaySee | @slyon : to do this, I had to disable, mask, stop systemd-networkd ... then unmask, enable, ans start NetworkManager | 12:43 |
JaySee | I think, netplan has some more configuration some where , which i am missing. | 12:43 |
slyon | JaySee: can you compare the 'ip route' output when using the networkd renderer VS the NetworkManager renderer? | 12:45 |
JaySee | @slyon, sure. I will share them in few minutes | 12:46 |
JaySee | @slyon: this is how it looks after changing it to NetworkManager as renderer. It is adding 4 defaults routes --> https://paste.ubuntu.com/p/VrRjktm6QV/ | 12:58 |
slyon | okay... are 10.2.22.1/10.3.23.1/10.4.23.1 the correct gateways which should be used by this interfaces? | 13:01 |
slyon | I guess you could try to add the corresponding gateway4: settings to each interface (cf. https://netplan.io/reference/#common-properties-for-all-device-types) | 13:03 |
slyon | (as you did with eth0) | 13:05 |
JaySee | slyon: yes the gateways are correct. But when I add gateways for all the 4 interfaces. Only 4th NIC is working remaining 3 are not working. This is kind of strange behavior. | 13:07 |
slyon | ah.. maybe netplan/systemd overwrites the previous default gateways.. I guess then the (static) routes need to be defined manually | 13:09 |
slyon | via the routes: setting... probably something like this: | 13:10 |
slyon | routes: | 13:10 |
slyon | - to: 0.0.0.0/0 | 13:10 |
slyon | via: 10.2.22.1 | 13:10 |
slyon | on-link: true | 13:10 |
JaySee | @slyon, thanks. I will try that. | 13:37 |
=== King_InuYasha is now known as Conan_Kudo | ||
=== Conan_Kudo is now known as King_InuYasha | ||
=== King_InuYasha is now known as Conan_Kudo | ||
=== Conan_Kudo is now known as King_InuYasha | ||
=== King_InuYasha is now known as Conan_Kudo | ||
=== Conan_Kudo is now known as King_InuYasha |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!