SLE 15 - Configure a static network address while in the Rescue System
This document (7023891) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
ip a add {ip_addr/mask} dev {interface}
ip a add 192.168.1.200/255.255.255.0 dev eth0
ip a add 192.168.1.200/24 dev eth0
ip link set dev {device} {up|down}
ip link set dev eth0 up
Assign a Default Gateway
ip route add default via {gateway_addr}
ip route add default via 192.168.1.254
ip route add {network} via {gateway_addr}
ip route add 192.168.1.0/24 via 192.168.1.254
ip a del {current_ip_addr} dev {device}
ip a del 192.168.1.200 dev eth0
ip route del {gateway_addr}
ip route del {network} dev {device}
ip route del 192.168.1.254
ip route del 192.168.1.0/24 dev eth0
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023891
- Creation Date: 22-May-2019
- Modified Date:24-Apr-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com