Network Configuration Methods
YaST (Recommended for SUSE):
-
GUI and CLI management
-
Integrated system configuration
-
Consistent across SUSE products
wicked (Default network manager):
-
SUSE's network configuration framework
-
XML-based configuration
-
Replaces traditional ifcfg files
NetworkManager (Alternative):
-
Available but not default
-
Good for desktop environments
Storage Network Configuration with YaST
Using YaST CLI:
# Configure storage interface with YaST
sudo yast lan add name=storage-iscsi-1 \
ethdevice=ens1f0 \
bootproto=static \
ipaddr=10.100.1.101/24 \
mtu=9000 \
startmode=auto
sudo yast lan add name=storage-iscsi-2 \
ethdevice=ens1f1 \
bootproto=static \
ipaddr=10.100.2.101/24 \
mtu=9000 \
startmode=auto
# Apply configuration
sudo systemctl restart wicked
Using YaST GUI:
# Launch YaST network configuration
sudo yast lan
# Follow GUI to:
# 1. Add new interface
# 2. Set static IP
# 3. Set MTU to 9000
# 4. Set to start on boot
# 5. Apply configuration
Storage Network Configuration with wicked
Create wicked configuration files:
# Create configuration for first storage interface
sudo tee /etc/sysconfig/network/ifcfg-ens1f0 > /dev/null <<'EOF'
BOOTPROTO='static'
STARTMODE='auto'
IPADDR='10.100.1.101/24'
MTU='9000'
NAME='Storage iSCSI 1'
EOF
# Create configuration for second storage interface
sudo tee /etc/sysconfig/network/ifcfg-ens1f1 > /dev/null <<'EOF'
BOOTPROTO='static'
STARTMODE='auto'
IPADDR='10.100.2.101/24'
MTU='9000'
NAME='Storage iSCSI 2'
EOF
# Restart wicked
sudo systemctl restart wicked
# Verify
ip addr show ens1f0
ip addr show ens1f1
Key wicked parameters:
-
BOOTPROTO='static'- Static IP configuration -
STARTMODE='auto'- Start on boot -
MTU='9000'- Jumbo frames
MTU Configuration
# Verify MTU
ip link show ens1f0 | grep mtu
# Test MTU (jumbo frames)
ping -M do -s 8972 <storage_portal_ip>
# If using wicked, MTU is set in ifcfg file
# If using YaST, MTU can be set in GUI or CLI
Important: MTU must be 9000 end-to-end (host -> switch -> storage).