Ubuntu8.x Server 网络配置

Ubuntu8.x Server 网络配置
修改IP
nano /etc/network/interfaces

修改DNS
nano /etc/resolv.conf

修改完后重新启动服务

/etc/init.d/networking restart

安装ssh,安装后默认是启动的,这样就可以通过SecureCRT访问Ubuntu了,这也是我的主要目的。

  apt-get install openssh-server openssh-client

  停止ssh: /etc/init.d/ssh stop

  启动ssh: /etc/init.d/ssh start

  重启ssh: /etc/init.d/ssh restart

解决网络连接被重置的问题(新浪博客比较明显):
   ubuntu默认的网络连接mtu为576,我们所在网络环境通才情况下mtu是1500,因此做如下修改:
       i.网络连接管理器里“编辑连接”设定MTU值,或者
       ii./etc/network/interfaces加上这样一句:
     post -up /sbin/ifconfig mtu 1500


关闭 IPV6:
sudo gedit /etc/modprobe.d/aliases
然后修改这一行:
alias net-pf-10 ipv6
为:
alias net-pf-10 off #ipv6

注释掉 hosts 文件中所有与 IPV6 有关的行: sudo gedit /etc/hosts

新建一个sudo gedit /etc/modprobe.d/bad_list 文件,内容为: alias net-pf-10 off然后重启。



你可能感兴趣的:(Ubuntu8.x Server 网络配置)