Practical IP Binding
Real-World IP Binding Scenarios
graph TD
A[IP Binding Scenarios] --> B[Web Hosting]
A --> C[Load Balancing]
A --> D[Network Services]
A --> E[Security Isolation]
Scenario 1: Multiple Website Hosting
Configuration Steps
- Create multiple IP addresses
- Configure web server
- Set up virtual hosts
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.168.1.100/24
- 192.168.1.101/24
- 192.168.1.102/24
Nginx Virtual Host Example
server {
listen 192.168.1.100:80;
server_name website1.example.com;
root /var/www/website1;
}
server {
listen 192.168.1.101:80;
server_name website2.example.com;
root /var/www/website2;
}
Scenario 2: Network Service Isolation
Service |
IP Address |
Port |
Purpose |
Web Server |
192.168.1.100 |
80 |
Public HTTP |
Database |
192.168.1.101 |
5432 |
Internal DB |
API Service |
192.168.1.102 |
8080 |
API Endpoint |
Advanced IP Binding Techniques
1. Alias Interfaces
## Create persistent IP aliases
sudo ip addr add 192.168.1.103/24 dev eth0 label eth0:1
2. VLAN Configuration
network:
version: 2
renderer: networkd
vlans:
eth0.10:
id: 10
link: eth0
addresses: [192.168.10.50/24]
eth0.20:
id: 20
link: eth0
addresses: [192.168.20.50/24]
Security Considerations
- Use firewall rules
- Implement network segmentation
- Configure IP-based access controls
Troubleshooting IP Binding
## Verify IP configuration
ip addr show
## Check network connectivity
ping 192.168.1.101
## Validate network interfaces
networkctl status
## Monitor network traffic
sudo iftop
## Check network statistics
netstat -tuln
LabEx Networking Recommendations
At LabEx, we emphasize hands-on practice and systematic approach to mastering complex networking configurations and IP binding techniques.