ipsec vpn完整配置
r2#sh run
Building configuration…
Current configuration : 1312 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname r2
!
r2#sh run
Building configuration…
Current configuration : 1312 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname r2
!
一些linux上的小点点。同样是很久前的了。贴出来,偶然有空看看了。
/etc/sysconfig/network-scripts/ifcfg-eth0
# Digital Equipment Corporation DECchip 21140 [FasterNet]
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.22
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
HWADDR=00:03:ff:04:82:e0
GATEWAY=192.168.0.1
这是我四年前为做一个系统测试了这条语句。挺实用的!
tasklist |find “cmd.exe” &&if errorlevel 1 (goto 1) else goto 2
:1
c:
cd \
md vi1
:2
c:
cd \
md vi
pause
贴上一些IPV6配置
interface Tunnel2
no ip address
ipv6 address 2001:DA8:E800:F::4:1/112
tunnel source FastEthernet0/0
tunnel destination 210.34.0.1
tunnel mode ipv6ip
interface FastEthernet0/0
ip address 210.34.4.251 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
ipv6 route ::/0 Tunnel2