vritual box linux桥接网络配置
来源:互联网 发布:js对象数组按属性排序 编辑:程序博客网 时间:2024/06/18 14:59
反反复复的总因为一点小问题折腾好久
这次把我遇到的问题都记录下来。最简单 。 不解释无关参数
1.网卡配置:
device
hwaddr
type=Ethernet
onboot=yes
bootproto=static
ipaddr= 此处与主机同网段无冲突就行
netmask=255.255.255.0
gateway= 与主机的dns相同
dns1 = 与主机的dns相同
2.关闭SELINUX和防火墙(主机防火墙最好也关闭了)
查看selinux状态
[root@localhost ~]# sestatus -v
SELinux status: disabled
关闭selinux
1、临时关闭(不用重启机器):
setenforce 0 ##设置SELinux 成为permissive模式
setenforce 1 ##设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器:(永久关闭)
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
防火墙
查询防火墙状态
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
target prot opt source destination
临时关闭 : service iptables stop
永久关闭 : chkconfig iptables off
虚拟机下的几个关键选项 (掉坑里好多次)
很容易忽视这个问题。
阅读全文
0 0
- vritual box linux桥接网络配置
- virtual box网络配置
- Linux桥接网络配置
- Virtual Box中的Debian网络配置
- 【指导】virtual box ubuntu 网络配置
- 详解Virtual Box配置CentOS7网络
- 关于linux配置桥接网络
- Virtual Box配置网络以及SSH登陆配置
- Virtual Box配置网络以及SSH登陆配置
- 网络 linux网络配置
- Virtual Box配置CentOS7网络(图文教程)
- linux配置网络配置
- 虚拟机安装linux操作系统,桥接模式配置网络
- linux中配置桥接网络,让虚拟机能够上网
- Linux 最小安装 + 桥接模式 + 网络配置
- linux下NAT模式和桥接模式网络配置
- Linux网络基本网络配置
- 【网络】Linux网络相关配置
- CentOS下安装JDK1.7
- Bitmap基本概念及在Android4.4系统上使用BitmapFactory的注意事项
- 使用浏览器访问 Linux 终端的方法
- 05_程序员必须掌握的8大排序算法_冒泡排序
- canvas制作简易祖玛游戏
- vritual box linux桥接网络配置
- Android7.0中文文档(API)-- AbsListView.LayoutParams
- 网络异常模拟测试方法
- 关于PHP中Composer依赖管理工具的介绍及安装方法
- ps学习之二——奥运五环
- Linux下的进程概论与编程一(进程概念与编程)
- signal(SIGPIPE, SIG_IGN)
- 常见滑动事件冲突情况分析及解决
- I/O多路复用之poll