- Create Docker Network
- # docker network create --driver=bridge [docker's network name]
- *Docker automatically create network bridge with brctl when running command (for linux environment).
- Bridge created network with another interface
- # brctl addif [brid name] [NIC’s name]
- *brctl show (for lookup bridge name).
- **Manual add interface to bridge everytime after restart host.
- Create Docker Cointainer
- Connect Docker to bridge
- # docker network connect [Network Name] [Container ID]
- *Container will be connect and automatically create another interface on container that connect with created network.
Showing posts with label Network. Show all posts
Showing posts with label Network. Show all posts
Tuesday, 6 September 2016
How to add network interface card (NIC) to Docker’s container and bridging with phisical NIC
Friday, 21 June 2013
การสร้าง Sub Interface บน Linux (CentOS)
How to create Sub Interface
1. Install vlan packet
ubuntu# apt-get install vlan
2. Create Sub-Interface
# /sbin/vconfig add [interface] [vlan_id]
ex. /sbin/vconfig add eth0 100
3. on Interface
# ifconfig eth0.100 up
_________________________
การสร้าง sub-interface (vlan tag บน physical interface) บน Linux สามารถทำได้โดยใช้คำสั่ง /sbin/vconfig สำหรับทำให้เครื่องรู้จักกับ vlan ที่ต้องการ
ตัวอย่างการเพิ่ม sub-interface
/sbin/vconfig add eth0 vlan 100
/sbin/ifconfig eth0.100 up
ตัวอย่างการลง sub-interface
/sbin/vconfig rem eth0.100
1. Install vlan packet
ubuntu# apt-get install vlan
2. Create Sub-Interface
# /sbin/vconfig add [interface] [vlan_id]
ex. /sbin/vconfig add eth0 100
3. on Interface
# ifconfig eth0.100 up
_________________________
การสร้าง sub-interface (vlan tag บน physical interface) บน Linux สามารถทำได้โดยใช้คำสั่ง /sbin/vconfig สำหรับทำให้เครื่องรู้จักกับ vlan ที่ต้องการ
ตัวอย่างการเพิ่ม sub-interface
/sbin/vconfig add eth0 vlan 100
/sbin/ifconfig eth0.100 up
ตัวอย่างการลง sub-interface
/sbin/vconfig rem eth0.100
Subscribe to:
Posts (Atom)
Import SSH Private Key to Yubikey (PIV) for SSH Authentication
Introduction: This guide will walk you through the process of importing your SSH private key to a Yubikey (PIV) for SSH authentication on y...
-
BIRD is an open-source router daemon for Linux OS. BIRD can exchange IP routes between BIRD servers and routers. this post shows an example ...
-
Introduction: This guide will walk you through the process of importing your SSH private key to a Yubikey (PIV) for SSH authentication on y...
-
Problem : 1. Can't start RADIUS Systemd service. 2. Log show like this. Oct 9 00:00:49 radius1 sh[1114]: C = FR, ST = Radiu...