Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Solution
create Bridge

>> Need to install ifupdown2 >>> But Issue

Code Block
titleifupdown2
collapsetrue
root@hp8300:~# apt install ifupdown2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-argcomplete
Suggested packages:
  ethtool python-gvgen python-mako
The following packages will be REMOVED:
  ifenslave ifupdown libproxmox-acme-perl libpve-access-control
  libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl
  libpve-guest-common-perl libpve-http-server-perl libpve-storage-perl librados2-perl
  proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager pve-manager
  pve-xtermjs qemu-server
The following NEW packages will be installed:
  ifupdown2 python-argcomplete
0 upgraded, 2 newly installed, 19 to remove and 24 not upgraded.
Need to get 0 B/225 kB of archives.
After this operation, 14.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook) 
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook) 
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook



add the new repository :  Link

apt install ifupdown2
Work around
DOWN

ifdown enp2s0

ifdown vmbr1

CHANGEiface vmbr1 inet dhcp
UP

ifup enp2s0

ifup vmbr1



Code Block
titledhcp
root@hp8300:~# more /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.9
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet dhcp 
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
#to SRX320

auto vmbr1
iface vmbr1 inet dhcp
        bridge_ports enp2s0
        brdige_stp off





Code Block
titledhcp client
root@hp8300:~# ifup vmbr1

Waiting for vmbr1 to get ready (MAXWAIT is 32 seconds).
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/vmbr1/68:05:ca:16:08:6f
Sending on   LPF/vmbr1/68:05:ca:16:08:6f
Sending on   Socket/fallback
Created duid "\000\001\000\001'IG\375h\005\312\026\010o".
DHCPDISCOVER on vmbr1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on vmbr1 to 255.255.255.255 port 67 interval 8
DHCPOFFER of 192.168.1.12 from 192.168.1.1
DHCPREQUEST for 192.168.1.12 on vmbr1 to 255.255.255.255 port 67
DHCPACK of 192.168.1.12 from 192.168.1.1
bound to 192.168.1.12 -- renewal in 33322 seconds.
root@hp8300:~# 


Code Block
titleip addr and ping
collapsetrue
root@hp8300:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 6c:3b:e5:38:93:35 brd ff:ff:ff:ff:ff:ff
3: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr1 state UP group default qlen 1000
    link/ether 68:05:ca:16:08:6f brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 6c:3b:e5:38:93:35 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.9/24 brd 192.168.0.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::6e3b:e5ff:fe38:9335/64 scope link
       valid_lft forever preferred_lft forever
5: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 68:05:ca:16:08:6f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.12/24 brd 192.168.1.255 scope global dynamic vmbr1
       valid_lft 86248sec preferred_lft 86248sec
    inet6 fe80::6a05:caff:fe16:86f/64 scope link
       valid_lft forever preferred_lft forever


root@hp8300:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=2.71 ms





VM adding vmbr1 to the VM

...