Chinaunix首页 | 论坛 | 博客
  • 博客访问: 125919
  • 博文数量: 24
  • 博客积分: 1516
  • 博客等级: 上尉
  • 技术积分: 255
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-22 17:11
文章分类
文章存档

2011年(4)

2010年(10)

2009年(10)

分类: LINUX

2009-09-28 18:07:53

    最近搭建vpn运行环境, 采用vmware team 构建虚拟网络时遇到 很多挠头的问题, 现已解决, 总结一下配置过程和中间遇到的问题以及解决方法, 留个自己以后看,也希望对大家有所帮助。
    
    1. 
 
 
 
 
 
问题1. 执行 ifup eth0, 出现如下错误。
      eth0: ERROR while getting interface flags: No such device 
      SIOCSIFADDR: No such device
解决方法:
      删除缓存文件 /etc/udev/rules.d/xxx-persistent-net.rules 文件其中 xxx 会因为系统不同而变化。
      然后reboot, 一切ok。
 
问题2. 无法改变 ip_forward 的值。
解决方法:proc   是系统动态生成的,关机就没有了。  
  这个里保存的有。  
  $   vi   /etc/sysctl.conf  
  #   Kernel   sysctl   configuration   file   for   Red   Hat   Linux  
  #  
  #   For   binary   values,   0   is   disabled,   1   is   enabled.     See   sysctl(8)   and  
  #   sysctl.conf(5)   for   more   details.  
   
  #   Controls   IP   packet   forwarding  
  net.ipv4.ip_forward   =   0  
   
  #   Controls   source   route   verification  
  net.ipv4.conf.default.rp_filter   =   1  
   
  #   Controls   the   System   Request   debugging   functionality   of   the   kernel  
  kernel.sysrq   =   0  
   
  #   Controls   whether   core   dumps   will   append   the   PID   to   the   core   filename.  
  #   Useful   for   debugging   multi-threaded   applications.  
  kernel.core_uses_pid   =   1
     
==========================================
interface 文件 ?
先留着,明儿改

    
阅读(1664) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~