# Networking via YAML ## storage vlan ```yaml= --- apiVersion: nmstate.io/v1 kind: NodeNetworkConfigurationPolicy metadata: name: control-plane101-v201 spec: nodeSelector: kubernetes.io/hostname: control-plane101.ocp-dev-a.ocp.ct.edu ### Change this desiredState: interfaces: - name: bond-mgmt.201 type: vlan state: up vlan: base-iface: bond-mgmt id: 201 protocol: 802.1q ipv6: enabled: false ipv4: enabled: true dhcp: false address: - ip: 10.104.242.101 ### Change this prefix-length: 22 ``` ## bond during installation The Assisted Installer has gained form-based input for creating bonds. ![Screenshot of Assisted Installer bond creation dialog box](https://hackmd.io/_uploads/rk82MCOslg.png) Previously I uploaded raw YAML to create bonds during installation... Plese substitute appropriate values... ```yaml= --- interfaces: ### server-01 - name: eno5 type: ethernet state: up mac-address: c4:ab:4d:27:8e:50 ### Change this lldp: enabled: true ipv4: enabled: false ipv6: enabled: false - name: eno6 type: ethernet state: up mac-address: c4:ab:4d:27:8e:51 ### Change this lldp: enabled: true ipv4: enabled: false ipv6: enabled: false # - name: eno3 # type: ethernet # state: down # mac-address: 24:6E:96:6D:E5:B4 # # - name: eno4 # type: ethernet # state: down # mac-address: 24:6E:96:6D:E5:B6 - name: bond-mgmt type: bond state: up link-aggregation: mode: active-backup ### Change this (802.3ad) ports: - eno5 - eno6 lldp: enabled: true ipv4: enabled: false ipv6: enabled: false - name: bond-mgmt.101 type: vlan state: up ipv4: enabled: true dhcp: false address: - ip: 10.10.10.101 ### Change this prefix-length: 22 vlan: base-iface: bond-mgmt id: 101 protocol: 802.1q dns-resolver: config: search: - example.com ### Change this server: - 10.10.10.10 ### Change this - 10.10.10.11 ### Change this routes: config: - destination: 0.0.0.0/0 next-hop-address: 10.10.10.1 ### Change this next-hop-interface: bond-mgmt.101 ### Change this table-id: 254 ```