Unable to add default gateway for multiple interface
akgowda opened this issue · comments
unable to add default route for multiple interface.
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlan-conf
spec:
config: '{
"cniVersion": "0.3.1",
"type": "ipvlan",
"master": "ens5",
"ipam": {
"type":"whereabouts",
"range":"192.168.100.0/24",
"range_start": "192.168.100.200",
"range_end": "192.168.100.201",
"gateway": "192.168.100.1",
"routes": [
{"dst":"192.168.200.0/24"},
{"dst":"0.0.0.0/0"}]
}
}'
output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.244.1.1 0.0.0.0 UG 0 0 0 eth0
10.244.0.0 10.244.1.1 255.255.0.0 UG 0 0 0 eth0
10.244.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.200.0 192.168.100.1 255.255.255.0 UG 0 0 0 eth1