Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
84432621
Unverified
Commit
84432621
authored
Nov 22, 2016
by
Cam Cope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure a static MAC address on the LXC bridge
Signed-off-by:
Cam Cope
<
cam@dropbox.com
>
parent
dea1cfbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lxc-net.in
config/init/common/lxc-net.in
+2
-0
lxc.spec.in
lxc.spec.in
+1
-0
No files found.
config/init/common/lxc-net.in
View file @
84432621
...
...
@@ -9,6 +9,7 @@ varlib="@LOCALSTATEDIR@/lib"
USE_LXC_BRIDGE
=
"true"
LXC_BRIDGE
=
"lxcbr0"
LXC_BRIDGE_MAC
=
"00:16:3e:00:00:00"
LXC_ADDR
=
"10.0.3.1"
LXC_NETMASK
=
"255.255.255.0"
LXC_NETWORK
=
"10.0.3.0/24"
...
...
@@ -45,6 +46,7 @@ ifup() {
MASK
=
`
_netmask2cidr
${
LXC_NETMASK
}
`
CIDR_ADDR
=
"
${
LXC_ADDR
}
/
${
MASK
}
"
ip addr add
${
CIDR_ADDR
}
dev
$1
ip
link set
dev
$1
address
$LXC_BRIDGE_MAC
ip
link set
dev
$1
up
}
...
...
lxc.spec.in
View file @
84432621
...
...
@@ -196,6 +196,7 @@ USE_LXC_BRIDGE="true"
# If you have the dnsmasq daemon installed, you'll also have to update
# /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
LXC_BRIDGE="lxcbr0"
LXC_BRIDGE_MAC="00:16:3e:00:00:00"
LXC_ADDR="$SUBNET.1"
LXC_NETMASK="255.255.255.0"
LXC_NETWORK="$SUBNET.0/24"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment