1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

proxmox 4.0 でlxcコンテナから一つのIPでインターネットに出る

Posted at
  • CentOS7は対応していない。

vmbr0:0を作成しておく

/etc/network/interfaces
auto vmbr0:0
iface vmbr0:0 inet static
        address 192.168.101.1
        netmask 255.255.255.0
  • iptablesでMASQUERADE設定
MASQUERADE  all  --  192.168.101.0/24     anywhere

ネットワーク設定

スクリーンショット 2015-06-24 7.51.11.png

  • インターネットに接続できることを確認。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?